Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » How to Copy a Model File?(How to Copy a Model File?)
How to Copy a Model File? [message #1740776] Thu, 18 August 2016 13:16 Go to next message
Eclipse UserFriend
Hello,

Primary Question: I want to copy a model file. This is, not copying the contents of the model itself like model elements, but copying the whole file as a file like copy-paste in an operation system enviroment (Please do not ask why I am not doing this manually, this has to be done in a transformation). How can I achieve this?

Secondary Question: Assume that I have a metamodel. This metamodel, (a) does not necessarily have a root element that contains everything, (b) may depend on other metamodels. As a result, an instance of this model will not have a root element and may refer to other models that are instances of dependent metamodels. If I want to copy such a model, just this model -not the dependent models-, how can I achieve this (It is also fine if the answer to the primary question solves this problem)?

Thank you.

Bugra
Re: How to Copy a Model File? [message #1740974 is a reply to message #1740776] Mon, 22 August 2016 04:25 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2162
Registered: July 2009
Location: York, UK
Senior Member

Hi Bugra,

I'd suggest using ANT's "copy" [1] task or a custom Java class [2].

Cheers,
Dimitris

[1] https://ant.apache.org/manual/Tasks/copy.html
[2] http://www.eclipse.org/epsilon/doc/articles/call-java-from-epsilon/
Previous Topic:EVL GMF Integration
Next Topic:Validating a weaving model programmatically
Goto Forum:
  


Current Time: Tue Apr 16 20:54:59 GMT 2024

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

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

Back to the top