| 
| Using IHandlerService in modal dialog [message #326343] | Sun, 16 March 2008 14:08  |  | 
| Eclipse User  |  |  |  |  | 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.03667 seconds