Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Today's Messages (on)  | Unanswered Messages (off)

Forum: EMF
 Topic: Run generated Editors in Eclipse4 RCP
Re: Run generated Editors in Eclipse4 RCP [message #1060713 is a reply to message #1060687] Tue, 28 May 2013 04:06
Christophe Bouhier is currently offline Christophe Bouhier
Messages: 695
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 07:45
Ed Merks is currently offline Ed Merks
Messages: 24570
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).
Re: Run generated Editors in Eclipse4 RCP [message #1060804 is a reply to message #1060764] Tue, 28 May 2013 09:14
Régent L Archevêque is currently offline Régent L Archevêque
Messages: 37
Registered: May 2010
Member
Ok. I'll post a bug on this. Meanwhile I continue my investigation!!!

Thanks Wink
Re: Run generated Editors in Eclipse4 RCP [message #1060811 is a reply to message #1060687] Tue, 28 May 2013 09:39
Régent L Archevêque is currently offline Régent L Archevêque
Messages: 37
Registered: May 2010
Member
I posted bug [url=https://bugs.eclipse.org/bugs/show_bug.cgi?id=409283]

I made some check and I realize that if I change in the Run Configurations...
Run a product -> org.eclipse.sdk.ide
Run an application -> org.eclipse.ui.ide.workbench
Then it works!
Re: Run generated Editors in Eclipse4 RCP [message #1060822 is a reply to message #1060811] Tue, 28 May 2013 10:14
Régent L Archevêque is currently offline Régent L Archevêque
Messages: 37
Registered: May 2010
Member
Just to be clear in my previous post. It works with the Eclipse SDK application but not with my RCP application.
Wink



Current Time: Tue May 28 11:55:47 EDT 2013

Powered by FUDForum. Page generated in 0.03019 seconds