Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » [Resolved] Wrong merged application model when using compatibility layer
[Resolved] Wrong merged application model when using compatibility layer [message #1323902] Wed, 30 April 2014 13:57 Go to next message
Karl Puperze is currently offline Karl PuperzeFriend
Messages: 36
Registered: August 2011
Member
We have updated the target platform of our RCP application to 4.3.2 and use the compatibility layer. We want to use the new stuff from now on and migrate the old stuff later.

I have created a new Application Model with all necessary Add-ons, a trimmed window, a perspective stack and linked it to our application. I can register new part descriptors in model fragments and everything seems to work just fine. But when I add a main menu to my trimmed window with ID org.eclipse.ui.main.menu all my menu entries get lost. When I remove the main menu it is generated by the compatibility layer and filled with all my menu entries from extension points. When I add binding contexts (the default ones, e.g. org.eclipse.ui.contexts.dialogAndWindow) the key binding of the E4 live model editor gets lost. Is there a bug in the compatibility layer or did I do something wrong?

In case of the menu I can not run the compatibility layer and add new menu items via an application model fragment. Either use the compatibility layer or the new application model in a pure e4 application.

<?xml version="1.0" encoding="ASCII"?>
<application:Application xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:advanced="http://www.eclipse.org/ui/2010/UIModel/application/ui/advanced" xmlns:application="http://www.eclipse.org/ui/2010/UIModel/application" xmlns:basic="http://www.eclipse.org/ui/2010/UIModel/application/ui/basic" xsi:schemaLocation="http://www.eclipse.org/ui/2010/UIModel/application/ui/advanced http://www.eclipse.org/ui/2010/UIModel/application#//ui/advanced http://www.eclipse.org/ui/2010/UIModel/application/ui/basic http://www.eclipse.org/ui/2010/UIModel/application#//ui/basic" xmi:id="org.eclipse.e4.legacy.ide.application" elementId="de.fact.first.rcp" bindingContexts="_SeXUHO8EEd6BC9cDb6iV7y">
  <children xsi:type="basic:TrimmedWindow" xmi:id="IDEWindow" elementId="de.fact.first.rcp.window.main" selectedElement="_pzzmEM63EeOjRu9JuR6IZg" label="FIRST" tooltip="Financial Information And Reporting Standard Tool" bindingContexts="_SeXUHO8EEd6BC9cDb6iV7y" width="1280" height="1024">
    <children xsi:type="advanced:PerspectiveStack" xmi:id="_pzzmEM63EeOjRu9JuR6IZg" elementId="de.fact.first.rcp.window.main.perspectivestack"/>
  </children>
  <handlers xmi:id="_aoKwcK9JEeOaDvlsFHDFCQ" elementId="de.fact.first.frontoffice.product.standalone.switchThemeCommandHandler" contributionURI="bundleclass://de.fact.first.frontoffice.product.standalone/de.fact.first.frontoffice.product.standalone.SwitchThemeCommandHandler" command="_TqelkK9JEeOaDvlsFHDFCQ"/>
  <bindingTables xmi:id="_SeXUEO8EEd6FC9cDb6iV7x" bindingContext="_SeXUHO8EEd6BC9cDb6iV7y"/>
  <rootContext xmi:id="_SeXUHO8EEd6BC9cDb6iV7y" elementId="org.eclipse.ui.contexts.dialogAndWindow" name="In Dialog and Windows">
    <children xmi:id="_SeXUEO8EEd6FC9cDb6iV7w" elementId="org.eclipse.ui.contexts.window" name="In Windows">
      <children xmi:id="_SeXUEO8EEd6FC9cDb6yV7x" elementId="org.eclipse.e4.ui.contexts.views" name="In Binding View"/>
    </children>
    <children xmi:id="_SeXUEO8EEd6FC9cDb6iV7x" elementId="org.eclipse.ui.contexts.dialog" name="In Dialogs"/>
  </rootContext>
  <commands xmi:id="_TqelkK9JEeOaDvlsFHDFCQ" elementId="de.fact.first.frontoffice.product.standalone.switchThemeCommand" commandName="Switch Theme"/>
  <addons xmi:id="_XGB3wPZlEd-XstlTZ6nTXg" elementId="org.eclipse.e4.core.commands.service" contributionURI="bundleclass://org.eclipse.e4.core.commands/org.eclipse.e4.core.commands.CommandServiceAddon"/>
  <addons xmi:id="_XGB3wPZlEd-XstlTZ6nTXh" elementId="org.eclipse.e4.ui.contexts.service" contributionURI="bundleclass://org.eclipse.e4.ui.services/org.eclipse.e4.ui.services.ContextServiceAddon"/>
  <addons xmi:id="_XGB3wPZlEd-XstlTZ6nTXi" elementId="org.eclipse.e4.ui.bindings.service" contributionURI="bundleclass://org.eclipse.e4.ui.bindings/org.eclipse.e4.ui.bindings.BindingServiceAddon"/>
  <addons xmi:id="_LK0NgPZmEd-XstlTZ6nTXj" elementId="org.eclipse.e4.ui.workbench.commands.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.CommandProcessingAddon"/>
  <addons xmi:id="_LK0NgPZmEd-XstlTZ6nTXk" elementId="org.eclipse.e4.ui.workbench.contexts.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.ContextProcessingAddon"/>
  <addons xmi:id="_LK0NgPZmEd-XstlTZ6nTXl" elementId="org.eclipse.e4.ui.workbench.bindings.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.swt/org.eclipse.e4.ui.workbench.swt.util.BindingProcessingAddon"/>
  <addons xmi:id="_XwQYkE2EEd-DfN2vYY4Lew" elementId="Cleanup Addon" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.cleanupaddon.CleanupAddon"/>
  <addons xmi:id="_bqcWME2EEd-DfN2vYY4Lew" elementId="DnD Addon" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.dndaddon.DnDAddon"/>
  <addons xmi:id="_7GC6sGp-Ed-QyNZjH9g15Q" elementId="MinMax Addon" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon"/>
  <addons xmi:id="_00yosOXqEeGugqEu_OWUGQ" elementId="org.eclipse.ui.workbench.addon.0" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.HandlerProcessingAddon"/>
</application:Application>

[Updated on: Fri, 16 May 2014 09:01]

Report message to a moderator

Re: Wrong merged application model when using compatibility layer [message #1334708 is a reply to message #1323902] Mon, 05 May 2014 18:20 Go to previous messageGo to next message
Karl Puperze is currently offline Karl PuperzeFriend
Messages: 36
Registered: August 2011
Member
I need some help here!! Is it even possible to use the compatibility layer and continue developing using the application model and the new dependency injection stuff?
Re: Wrong merged application model when using compatibility layer [message #1359294 is a reply to message #1323902] Fri, 16 May 2014 09:01 Go to previous message
Karl Puperze is currently offline Karl PuperzeFriend
Messages: 36
Registered: August 2011
Member
The solution i to either create a main menu in die application model or let the compatibility layer create it from the actions in the ActionBarAdvisor. It cannot merge both together.
Previous Topic:EMenuService Discouraged access
Next Topic:Broken popup menu with compatibility layer
Goto Forum:
  


Current Time: Tue Mar 19 07:58:26 GMT 2024

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

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

Back to the top