Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Adding to palette context menu
Adding to palette context menu [message #249126] Wed, 03 June 2009 10:31 Go to next message
Dominic Hanlan is currently offline Dominic HanlanFriend
Messages: 98
Registered: July 2009
Member
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 11:46 Go to previous messageGo to next message
Dominic Hanlan is currently offline Dominic HanlanFriend
Messages: 98
Registered: July 2009
Member
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 10:30 Go to previous message
Deepak Singla is currently offline Deepak SinglaFriend
Messages: 27
Registered: December 2009
Junior Member
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 Apr 23 06:02:24 GMT 2024

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

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

Back to the top