Keybinding in GEF ContentOutlinePage [message #216506] |
Fri, 19 May 2006 08:16 ![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: kwigboldus.hotmail.com
In my plugin I have 3 views
1) View1 containing a org.eclipse.jface.viewers.TreeViewer. When I
doubleclick on a Product then View2 (GEF editor) will be started
2) View2 containing a product editor, which extends
GraphicalEditorWithPalette
3) OutlineView which extends org.eclipse.gef.ui.parts.ContentOutlinePage;
View1 and the OutlineView must have the same menu's.
I defined in my plugin.xml 2 objectContributions on the extensionpoint
org.eclipse.ui.popupMenus. (both based on Product)
With an implementation of IAdapterFactory the ProductTreeEditPart (used in
the Outlineview) can be adapted to Product.
Now my actions show up in poopup menu's of View1 and the OutlineView. The
actions work as expected.
However in View1 the keybinding (defined in the plugin.xml) works fine,
but in the Outlineview it doesn't work.
(Note: in the popupmenu of the Outlineview the keysequence is shown...)
What can be the cause that the keybinding doesn't work in the GEF
ContentOutlinePage?
|
|
|
Re: Keybinding in GEF ContentOutlinePage [message #216514 is a reply to message #216506] |
Fri, 19 May 2006 12:12 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: kwigboldus.hotmail.com
Kor wrote:
> In my plugin I have 3 views
> 1) View1 containing a org.eclipse.jface.viewers.TreeViewer. When I
> doubleclick on a Product then View2 (GEF editor) will be started
> 2) View2 containing a product editor, which extends
> GraphicalEditorWithPalette
> 3) OutlineView which extends org.eclipse.gef.ui.parts.ContentOutlinePage;
> View1 and the OutlineView must have the same menu's.
> I defined in my plugin.xml 2 objectContributions on the extensionpoint
> org.eclipse.ui.popupMenus. (both based on Product)
> With an implementation of IAdapterFactory the ProductTreeEditPart (used in
> the Outlineview) can be adapted to Product.
> Now my actions show up in poopup menu's of View1 and the OutlineView. The
> actions work as expected.
> However in View1 the keybinding (defined in the plugin.xml) works fine,
> but in the Outlineview it doesn't work.
> (Note: in the popupmenu of the Outlineview the keysequence is shown...)
> What can be the cause that the keybinding doesn't work in the GEF
> ContentOutlinePage?
I found the cause of the problem: as selection from the OutlineView I get
a ProductTreePart instead of a Product.
So all I have to do is adapt ProductTreePart to Product.
Kor
|
|
|
Powered by
FUDForum. Page generated in 0.02665 seconds