Using IHandlerService in modal dialog [message #326343] |
Sun, 16 March 2008 18:08 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: newsgroups.atante.pl
Hi,
I've used the following code in tabbed editor ()
IWorkbenchPartSite site =
PlatformUI.getWorkbench().getActivePage().getActivePart().ge tSite();
IHandlerService handlerService = (IHandlerService)
site.getService(IHandlerService.class);
to register my actions via:
IHandlerActivation activation = handlerService.activateHandler(
myAction.getActionDefinitionId(),
new ActionHandler(myAction)
);
and it works.
Now I want to do the same but for currently opened modal dialog window.
Which object should I use to register? What object will give me getService()
method?
Or is there any other approach?
--
Piotr Górny, Atante
http://www.atante.pl
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04683 seconds