| Fill Menu with RCP and e4 [message #857362] |
Thu, 26 April 2012 09:29  |
Philippe Fry Messages: 5 Registered: April 2012 |
Junior Member |
|
|
Hello,
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.
|
|
|
|
| Re: Fill Menu with RCP and e4 [message #857377 is a reply to message #857366] |
Thu, 26 April 2012 09:39  |
Philippe Fry Messages: 5 Registered: April 2012 |
Junior Member |
|
|
I launch the RCP Application class : (public class Application implements IApplication)
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">
<product
application="fr.[...].application.application"
[...]
<property
name="applicationXMI"
value="application/LegacyIDE.e4xmi">
</property>
[Updated on: Thu, 26 April 2012 09:56] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.01500 seconds