Skip to main content


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 09:14 Go to next message
Julian Johnson is currently offline Julian JohnsonFriend
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 11:15 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
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 13:39 Go to previous message
Julian Johnson is currently offline Julian JohnsonFriend
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: Fri Apr 26 00:52:02 GMT 2024

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

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

Back to the top