|
Re: Run generated Editors in Eclipse4 RCP [message #1060713 is a reply to message #1060687] |
Tue, 28 May 2013 08:06 |
Christophe Bouhier Messages: 937 Registered: July 2009 |
Senior Member |
|
|
On 27-05-13 21:44, Régent L Archevêque wrote:
> Hi,
>
> I know it is highly related to Eclipse4 framework but I believe it is more appropriate to publish this question in this forum.
>
Hi Regent,
It's not an answer to your question, but perhaps this project would be
of your interest.
https://github.com/dzonekl/e4mf
rgds Christophe
> 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
> 8) 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).
>
|
|
|
Re: Run generated Editors in Eclipse4 RCP [message #1060764 is a reply to message #1060687] |
Tue, 28 May 2013 11:45 |
Ed Merks Messages: 33145 Registered: July 2009 |
Senior Member |
|
|
Régent,
I won't have time to look until later this week. Please open a bugzilla
with the details and I'll try to reproduce it and fix or redirect it as
appropriate.
On 27/05/2013 9:44 PM, Régent L Archevêque wrote:
> 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
> 8) 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).
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02983 seconds