Skip to main content



      Home
Home » Eclipse Projects » GEF » Adding to palette context menu
Adding to palette context menu [message #249126] Wed, 03 June 2009 06:31 Go to next message
Eclipse UserFriend
I have tried the following

MenuManager menu = getEditDomain().getPaletteViewer().getContextMenu();

GroupMarker marker = new GroupMarker("Test");
menu.add(marker);

menu.appendToGroup("Test", getActionRegistry().getAction(TestAction.ID));


To no avail ... the context menu is unchanged! Any suggestions!

/Dominic
Re: Adding to palette context menu [message #249132 is a reply to message #249126] Wed, 03 June 2009 07:46 Go to previous messageGo to next message
Eclipse UserFriend
I have answered my own question, by adding a menu listener to the context menu, you have to build the menu items on each
menuAboutToShow event.

Excellent

Dominic Hanlan wrote:
> I have tried the following
>
> MenuManager menu = getEditDomain().getPaletteViewer().getContextMenu();
>
> GroupMarker marker = new GroupMarker("Test");
> menu.add(marker);
>
> menu.appendToGroup("Test", getActionRegistry().getAction(TestAction.ID));
>
>
> To no avail ... the context menu is unchanged! Any suggestions!
>
> /Dominic
Re: Adding to palette context menu [message #503187 is a reply to message #249132] Fri, 11 December 2009 05:30 Go to previous message
Eclipse UserFriend
Hello Dominic,

I am new to GEF and working on GEF 3.2.2

Can you please tell me in details how you have added your pallete items to your context menu.

Thanks in advance

Previous Topic:[Zest] How to use IConnectionStyleBezierExtension
Next Topic:[RESOLVED] How to add SelectionListener on a PaletteEntry
Goto Forum:
  


Current Time: Tue Sep 16 04:27:46 EDT 2025

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

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

Back to the top