Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Forms] Ecore and Genmodel editor issues
[EMF Forms] Ecore and Genmodel editor issues [message #1766246] Mon, 19 June 2017 10:02 Go to next message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 662
Registered: July 2009
Location: Trondheim, Norway
Senior Member
I'm using the Ecore and Genmodel editors that are provided by the EMF Forms project, and although they are a great improvement, there are some annoying issues:
- When using the Generate Model menu item in the Ecore Editor, I get an error message stating that it couldn't find a GenModel file referencing the current EPackage, although the genmodel file is in the same folder and is properly loaded by both the default and custom Genmodel editors.
- When using the Genmodel Editor instead, I can generate code using the Generate Model menu item, but the genmodel (or rather the ecore model in the same editor) doesn't update properly when I edit the ecore model in the other editor. Hence, I need to close and open the editor.

I'm using Oxygen RC1
Re: [EMF Forms] Ecore and Genmodel editor issues [message #1766287 is a reply to message #1766246] Mon, 19 June 2017 22:10 Go to previous messageGo to next message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 662
Registered: July 2009
Location: Trondheim, Norway
Senior Member
I've updated to Oxygen RC2 and now code generation from the Ecore Editor seems to work. I notice it loads and shows the corresponding genmodel AND another instance of the same ecore (I assume since the genmodel references it). This confuses the editor, at least I get strange error markers. In addition, the second Ecore does not sync with the one I'm editing, so I have the same problem as before, the genmodel does not refresh and generate code based on the latest version of the ecore model.
Re: [EMF Forms] Ecore and Genmodel editor issues [message #1766300 is a reply to message #1766287] Tue, 20 June 2017 06:59 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 79
Registered: September 2016
Member
Hi,

could you kindly report a Bug, ideally with a test model and the precise steps to reproduce?
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=ecp

Thanks!

Best regards,
Jonas

--
Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/


--
Jonas Helming
Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: [EMF Forms] Ecore and Genmodel editor issues [message #1766329 is a reply to message #1766300] Tue, 20 June 2017 09:42 Go to previous messageGo to next message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 662
Registered: July 2009
Location: Trondheim, Norway
Senior Member
Here https://bugs.eclipse.org/bugs/show_bug.cgi?id=518503
The essence is that saving does not work if a genmodel (and a second instance of the ecore model) is loaded. When saving, the dirty flag is cleared and the file modification time changes, but not the file's contents. As if the second and unchanged ecore model overwrites the first.
Re: [EMF Forms] Ecore and Genmodel editor issues [message #1766404 is a reply to message #1766329] Wed, 21 June 2017 07:30 Go to previous message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 79
Registered: September 2016
Member
Thank you for the report!

--
Jonas Helming
Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Previous Topic:modeling attribute as enum in ecore
Next Topic:EMF to USE
Goto Forum:
  


Current Time: Tue Sep 18 13:32:55 GMT 2018

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

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

Back to the top