Renaming and regeneration? [message #1599416] |
Tue, 03 February 2015 16:19 |
Ernesto Posse Messages: 426 Registered: March 2011 |
Senior Member |
|
|
I need to change the name of a EcoreTools project.
I am aware that the EcoreTools user guide states
Quote:Changing the project name afterward is possible though error-prone and not without impact
So it is difficult, but it is possible. How?
Changing the name of the .aird file yields the message
Quote:Deletion of the main representations file of "x.aird" will invalidate it.
After accepting it, it is no longer possible to open the representations.
What is then the procedure to rename a project and its representation files?
Also, if one deletes the generated source files, how can one force their regeneration?
In general, how can you force the syncronization between the .aird, .ecore and .genmodel files?
If I change, for example, the name/path of the genmodel in the MANIFEST or plugin.xml, I don't see the effects anywhere. No new genmodel is created.
Thanks.
I'm using
Ecore Diagram Editor 2.0.3.201411191338 org.eclipse.emf.ecoretools.design.feature.group Eclipse Modeling Project
with
Eclipse Modeling Tools 4.4.1.20150109-0740 epp.package.modeling null
on Luna 4.4.1 SR 1a
|
|
|
|
Re: Renaming and regeneration? [message #1732481 is a reply to message #1725194] |
Tue, 17 May 2016 15:08 |
Cedric Brun Messages: 431 Registered: July 2009 |
Senior Member |
|
|
Hi, we are indeed aware of the issue but did not had the chance to work on it and to make this simpler.
The easiest way to achieve such a rename would be to first make sure that no .aird file is opened (right click, close) and then use the refactor option in eclipse making sure the tick "search for textual references" is enabled.
http://cedric.brun.io news and articles on eclipse and eclipse modeling.
|
|
|
Powered by
FUDForum. Page generated in 0.01846 seconds