Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Merging metamodels
Merging metamodels [message #1753725] Thu, 09 February 2017 11:10 Go to next message
Banafsheh A is currently offline Banafsheh AFriend
Messages: 262
Registered: July 2016
Senior Member
Hi,

How can I merge these two metamodels?
index.php/fa/28380/0/
  • Attachment: Untitled.jpg
    (Size: 18.59KB, Downloaded 190 times)
Re: Merging metamodels [message #1753726 is a reply to message #1753725] Thu, 09 February 2017 11:31 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5583
Registered: July 2009
Senior Member
HI

If you require just a single package in the merge, just DND the EClasses etc in the Sample Ecore Editor.

If you want a multi-package merged Ecore file, you hit a limitation of the Sample Ecore Editor, so I would edit the XMI to change from ecore:EPackage root element to , xmi:XMI with two EPackages, then DD for the residue.

Or you could write an M2M transformation...

Regards

Ed Willink

Re: Merging metamodels [message #1753735 is a reply to message #1753726] Thu, 09 February 2017 13:24 Go to previous messageGo to next message
Banafsheh A is currently offline Banafsheh AFriend
Messages: 262
Registered: July 2016
Senior Member
thanks,
I can not transform elements of the second part (EOL) in my transformation code. For this reason, I want to have one meta-model.

How can I DND the EClasses etc?
Re: Merging metamodels [message #1753739 is a reply to message #1753735] Thu, 09 February 2017 13:56 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5583
Registered: July 2009
Senior Member
Hi

Not being able to transform elements of the second model seems very unlikely. Seems like you have created a new problem to solve rather than solve your real challenge. Perhaps someone on the Epsilon newsgroup can help if you explain your actual problem.

DND is easy. Create a scratch Ecore file, open with the Sample Ecore Editor and try a few drags and drops.

Regards

Ed Willink
Re: Merging metamodels [message #1753878 is a reply to message #1753739] Sat, 11 February 2017 11:14 Go to previous message
Banafsheh A is currently offline Banafsheh AFriend
Messages: 262
Registered: July 2016
Senior Member
Thank you very much....
I use ATL as transformation language. You are right. It seems my real challenge is another thing!
Because when I register my meta-models, it doesn't generate any output whether I transform ETL part or EOL part. It has "Error loading platform:/resource/Project/Model/Tree2Graph.etl.model: org.eclipse.emf.ecore.xmi.IllegalValueException: Value 'org.eclipse.emf.ecore.impl.DynamicEObjectImpl@7eb81341 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@116d8da8 (name: NameExpression) (instanceClassName: null) (abstract: false, interface: false))' is not legal. (platform:/resource/Project/Model/Tree2Graph.etl.model, 35, 104)
" error.

[Updated on: Sat, 11 February 2017 11:17]

Report message to a moderator

Previous Topic:Constructor with parameters?
Next Topic:[CDO] Attempt by Transaction[2:8] to modify historical revision
Goto Forum:
  


Current Time: Sun Jan 21 13:00:37 GMT 2018

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

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