Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Keybinding in GEF ContentOutlinePage
Keybinding in GEF ContentOutlinePage [message #216506] Fri, 19 May 2006 08:16 Go to next message
Eclipse UserFriend
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
Eclipse UserFriend
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
Previous Topic:copy&paste
Next Topic:How to determine size of parent figure based on a child label???
Goto Forum:
  


Current Time: Thu Dec 01 13:15:30 GMT 2022

Powered by FUDForum. Page generated in 0.03024 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top