Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Order menus from different plugins
Order menus from different plugins [message #453496] Tue, 01 August 2006 08:07 Go to next message
Michael Seele is currently offline Michael SeeleFriend
Messages: 124
Registered: July 2009
Senior Member
Hi,

i have a "File" menu in ui-plugin and a "Reports" menu in reports-plugin.
when i start my application, the order of the menus are:

Reports, File

i want the following order:

File, Reports

what must i do?

here's the File-menu xml:

<extension
point="org.eclipse.ui.actionSets">
<actionSet
...>
<menu
id="fileMenu"
label="%standardActionSet.fileMenu"
>
<separator name="standardGroup"/>
</menu>
<action
.../>
</actionSet>
</extension>

and here's the Reports-menu xml:

<extension
point="org.eclipse.ui.actionSets">
<actionSet
...>
<menu
id="reportsMenu"
label="%menu.reports"
path="fileMenu">
<separator name="reportsGroup"/>
</menu>
<action
.../>
</actionSet>
</extension>

when path is filled out in reportsMenu, the application doesn't start.
without path, the order is wrong!
Re: Order menus from different plugins [message #453513 is a reply to message #453496] Tue, 01 August 2006 13:09 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

usually you put at least some items in your main menu using the
ActionBarAdvisor.

ex: fileMenu(File) additions(group) helpMenu(Help)

Then for any menus you create in your actionSets, you are making a path
of <menuId>/<menuId>/<groupId>

ex: to put something in the File menu, you would use a path of
"fileMenu" or "fileMenu/additions". To put a top level menu between File
and Help, you would use a path of "additions". etc.

Later,
PW


Previous Topic:Dialoge Box
Next Topic:is org.eclipse.debug.core part of RCP or usable in an RCP?
Goto Forum:
  


Current Time: Sun Oct 06 17:50:31 GMT 2024

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

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

Back to the top