Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Lack of clarity on .ecorediag and .ecore synchonisation(I prefer use .ecore diags as primary mechanism to create/update .ecore metamodels, puzzled how/when .ecore is updated)
Lack of clarity on .ecorediag and .ecore synchonisation [message #1064618] Thu, 20 June 2013 05:14 Go to next message
Julian Johnson is currently offline Julian Johnson
Messages: 20
Registered: March 2013
Junior Member
Hi, would appreciate a pointer to where the following topic is described or explained.

I use the New... other... Ecore Tools > Ecore diagram to create a class diagram, which also creates a corresponding .ecore metamodel file. When I update this diagram, the .ecore file is also updated.

However, I've had cases where I've deleted content from the model via the diagram (like a 'comprises' association), but there appears to be some legacy of the original association then left in the .ecore metamodel, even though it is removed from the .ecorediagram.

Is the way that the .ecore and the .ecorediagram synchonisation is explained somewhere? Is there some way I can force the .ecore model to be updated to be consistent with the .ecorediagram?

(My workspace is stored directly on a laptop drive, not on a network drive, so this is not any sort of file synchonisation problem).

Thanks.
Julian.
Re: Lack of clarity on .ecorediag and .ecore synchonisation [message #1064638 is a reply to message #1064618] Thu, 20 June 2013 07:15 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 829
Registered: July 2009
Senior Member
Hi Julian,

The Ecore diagram editor is non-canonical i.e. it supports displaying only a subset of an Ecore model. As such, deleting a graphical representation of an Ecore element (e.g. EClass) using the delete/backspace keys only removes it from the diagram. To delete an element from both the diagram and the underlying Ecore model you should right-click it and select "Delete from Model".

Regards,
Dimitris
Re: Lack of clarity on .ecorediag and .ecore synchonisation [message #1064671 is a reply to message #1064638] Thu, 20 June 2013 09:39 Go to previous message
Julian Johnson is currently offline Julian Johnson
Messages: 20
Registered: March 2013
Junior Member
Dimitris

great, thanks for that, I hadn't appreciated there were some right-click options...

Julian.
Previous Topic:Egl and epsilon standalones
Next Topic:Running Workflows from the command line
Goto Forum:
  


Current Time: Thu Aug 21 02:34:00 EDT 2014

Powered by FUDForum. Page generated in 0.01790 seconds