Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsFill Menu with RCP and e4
https://www.eclipse.org/forums/index.php/mv/msg/340496/857362/#msg_857362
I'm working on an application which mix RCP and e4 technologies. (There is a Appliation class, ApplicationWorkbenchAdvisor class, ApplicationWorkbenchWindowAdvisor class, ApplicationActionBarAdvisor class and a LegacyIDE.e4xmi)
In the ApplicationActionBarAdvisor i fill the main menu like this :
@Override
protected void fillMenuBar(IMenuManager menuBar) {
final MenuManager fileMenu = new MenuManager("&File", IWorkbenchActionConstants.M_FILE);
menuBar.add(fileMenu);
fileMenu.add(exitAction);
}
In the e4 application model i have a Menucontribution (parentId = org.eclipse.ui.main.menu)
<menuContributions xmi:id="_TKNd8I-GEeG2MIA3k-dHyw" parentId="org.eclipse.ui.main.menu">
<children xsi:type="menu:Menu" xmi:id="_YH-YcI-GEeG2MIA3k-dHyw" elementId="test2" label="Views">
<children xsi:type="menu:HandledMenuItem" xmi:id="_aemRkI-GEeG2MIA3k-dHyw" elementId="test2.showview" label="Show View" command="e4.show.view"/>
</children>
</menuContributions>
When i launch the application I have only menu items defined in my e4 application model (The menu "File" is not visible).
My question is How i can begin to fill the main windows menu in the ApplicationActionBarAdvisor the continue to populate it with the e4 application model ?. I'm sure i misunderstand something.
Thanks a lot.]]>Philippe Fry2012-04-26T13:29:55-00:00Re: Fill Menu with RCP and e4
https://www.eclipse.org/forums/index.php/mv/msg/340496/857366/#msg_857366
PW
]]>Paul Webster2012-04-26T13:32:10-00:00Re: Fill Menu with RCP and e4
https://www.eclipse.org/forums/index.php/mv/msg/340496/857377/#msg_857377
in my plugin.xml :
<extension
id="application"
point="org.eclipse.core.runtime.applications">
<application>
<run
class="fr.[...].application.Application">
</run>
</application>
</extension>
[...]
<extension
id="product"
point="org.eclipse.core.runtime.products">