Common Naviagtor (CommonNavigator) key bindings [message #464086] |
Fri, 23 February 2007 15:08  |
Eclipse User |
|
|
|
Originally posted by: eljefeboss.hotmail.com
In my RCP app, I use the org.eclipse.core.resources plugin for the workspace, and the
CommonNavigator as the viewer. Working with the CommonNavigator, I've been
successful creating my own context menus with IObjectActionDelegates..
Now I am trying to enable the key bindings for default retargetable actions from the
Navigator's default resource context menu. To clarify, if I right-click a resource
and select Delete, the resource is deleted. But, hitting the delete key has no
effect, even though the key name (Delete) does show on the context menu.
Rather than describing every approach I've tried, I thought I'd just ask..
What do I need to do to enable key bindings for these default actions, without
actually implementing the Action handler?
Many thanks..
|
|
|
Re: Common Naviagtor (CommonNavigator) key bindings [message #464092 is a reply to message #464086] |
Fri, 23 February 2007 15:57  |
Eclipse User |
|
|
|
Originally posted by: eljefeboss.hotmail.com
Silly me.. I guess all I needed to do was to register the Action in my ActionBarAdvisor..
deleteAction = ActionFactory.DELETE.create(window);
register(deleteAction);
Gearhart wrote:
> In my RCP app, I use the org.eclipse.core.resources plugin for the
> workspace, and the CommonNavigator as the viewer. Working with the
> CommonNavigator, I've been successful creating my own context menus with
> IObjectActionDelegates..
>
> Now I am trying to enable the key bindings for default retargetable
> actions from the Navigator's default resource context menu. To clarify,
> if I right-click a resource and select Delete, the resource is deleted.
> But, hitting the delete key has no effect, even though the key name
> (Delete) does show on the context menu.
>
> Rather than describing every approach I've tried, I thought I'd just ask..
>
> What do I need to do to enable key bindings for these default actions,
> without actually implementing the Action handler?
>
> Many thanks..
|
|
|
Powered by
FUDForum. Page generated in 0.02698 seconds