Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Get the Main Menu Manager(Get the Main Menu Manager)
Get the Main Menu Manager [message #705089] Fri, 29 July 2011 12:19 Go to next message
Janusz Dalecki is currently offline Janusz DaleckiFriend
Messages: 55
Registered: January 2010
Location: Sydney
Member
Hi All,
Is there any API to get hold of Main Manu Manager in Eclipse (not view part the main one)?
Is this by design or I am missing something?
Regards,
Janusz
Re: Get the Main Menu Manager [message #1391180 is a reply to message #705089] Mon, 30 June 2014 14:57 Go to previous messageGo to next message
Tommaso De Sica is currently offline Tommaso De SicaFriend
Messages: 128
Registered: March 2012
Location: Italy
Senior Member

I'm interested in this question. Any answers?
Re: Get the Main Menu Manager [message #1396614 is a reply to message #1391180] Tue, 08 July 2014 14:50 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
On 30-06-14 16:57, Tommaso De Sica wrote:
> I'm interested in this question. Any answers?

Isn't it this in ActionBarAdvisor (e3.x)

/**
* Fills the menu bar with the main menus for the window.
* <p>
* The default implementation does nothing.
* Subclasses may override.
* </p>
*
* @param menuBar the menu manager for the menu bar
*/
protected void fillMenuBar(IMenuManager menuBar) {
// do nothing
}
Re: Get the Main Menu Manager [message #1396681 is a reply to message #1391180] Tue, 08 July 2014 16:37 Go to previous message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 194
Registered: January 2012
Senior Member

Assuming you're asking about an RCP/IDE app, then the short answer is: no. It's by design: there are other ways in which plugins contribute menus and menu items.

For a 3.x-style RCP app, your product provides WorkbenchWindowAdvisors to describe the initial menu layout and other plugins can contribute to that layout using extensions to the org.eclipse.ui.menus extension point. For a pure E4 app, you manipulate an EMF-based model; the underlying implementation may or may not use a MenuManager.

Brian.


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Previous Topic:FieldEditorPreferencePage
Next Topic:TreeViewer::setInput() -> UI timeout
Goto Forum:
  


Current Time: Sun Nov 23 03:45:46 GMT 2014

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

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