Order menus from different plugins [message #453496] |
Tue, 01 August 2006 04:07  |
Eclipse User |
|
|
|
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 09:09  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03263 seconds