Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to register a context menu for a MultipageEditorPart?
How to register a context menu for a MultipageEditorPart? [message #515253] Thu, 18 February 2010 09:52 Go to next message
Patrick is currently offline PatrickFriend
Messages: 48
Registered: July 2009
Member
Hello! Smile

What is the correct way to register a context menu for a MultipageEditorPart?

I'm not using any viewers, just normal swt Composites for the editor pages. I want to implement an own context menu, when rightclicking on the page.

Thanks in advance
Re: How to register a context menu for a MultipageEditorPart? [message #515383 is a reply to message #515253] Thu, 18 February 2010 10:54 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

How are you currently doing it? It seems to me that when you add a
page, you would create the MenuManager, use that to create the context
menu for that page, and then register that MenuManager+selection
provider to register for a context menu.

You might have to make sure that the Menu parent is the Control that you
are going to add it to using setMenu(*).

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:Enable "Save As" command
Next Topic:Feature-based product build enabling p2
Goto Forum:
  


Current Time: Tue Dec 23 03:11:04 GMT 2014

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

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