| Run generated Editors in Eclipse4 RCP [message #1060687] |
Mon, 27 May 2013 15:44 |
Régent L Archevêque Messages: 34 Registered: May 2010 |
Member |
|
|
Hi,
I know it is highly related to Eclipse4 framework but I believe it is more appropriate to publish this question in this forum.
I started to test Eclipse4 framework. So far, it is going well with the 3.x compatibility layer. I try to build a Eclipse4 RCP application that includes an EMF generated Editor. The product starts properly but I get an error the first time the generated EMF editor is invoked (new model instance | simple open in the Navigator view). It complaints about "cannot find ID additions" (Popup menu entry point). I close the editor and try a second time and now it works. I believe there is a bundle startlevel that must set to resolve this issue but I do not know which one. If I navigate the model instance, the editor fails when right-clicking to get the popup menu. Is it possible to run EMF generated editor in Eclipse4?
I created a simple Eclipse4 RCP that reflects this.
-test (EMF model including Root that contains multiple Element.
-test.edit
-test.editor
-test.rcp (Product, E4 application etc).
Eclipse Build
-Eclipse 4.3RC1 (I20130516-2200)
-EMF Common 2.9.0.v20130515-0805
-EMF Ecore 2.9.0.v20130515-0805
-XCore 1.1.0.v20130522-0607
Steps to reproduce the problem:
1) Import the exiting projects (zip in attachment)
2) Open test.rcp->test.rcp.product
3) Launch an Eclipse Application (this will fail).
4) Go in Run->Run Configurations..
5) Select Ecplise Application->test.rcp.product
6) Select Plug-ins tab
7) Click on Add Required Plug-ins
Click on Run
9) In the Navigation View, create a new project named test (Right-Click -> New -> Project...)
10) Select the project test, right-click New->Other->Example EMF Model Creation Wizards->Test Model, Click on Next
11) Set the name of the file (ex. My1.test).
12) In the Model Object combo box select Root then Finish.
13) You get the editor opening error (see Log View in the bottom)
14) Close the editor
15) Open My1.test
16) Now the editor works.
17) Browse the EMF instance and select Root element.
18) Right-click to invoke the popup menu.
19) You get the popup menu error. (see Log view in the bottom).
|
|
|
Powered by
FUDForum. Page generated in 0.01501 seconds