Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » NodeModelUtils and EcoreUtil.copy
NodeModelUtils and EcoreUtil.copy [message #941499] Fri, 12 October 2012 15:31 Go to next message
Andrew Gacek is currently offline Andrew GacekFriend
Messages: 32
Registered: October 2011
Member
I'm creating a copy of my Xtext model using EcoreUtil.copy, doing some manipulations (removing large chunks of the model), and then I want to look up some original text information using NodeModelUtils. This fails since I'm working with a copy rather than the original semantic model. Is there any way to get around this? Perhaps some way of tracing a copy of an EObject back to its source?

-Andrew
Re: NodeModelUtils and EcoreUtil.copy [message #941508 is a reply to message #941499] Fri, 12 October 2012 15:41 Go to previous message
Andrew Gacek is currently offline Andrew GacekFriend
Messages: 32
Registered: October 2011
Member
I've just discovered that using EcoreUtil.Copier directly gives you access to the map of original->copy information. I should be able to invert that in order to go from the copy to the original.

-Andrew
Previous Topic:Issues and error when migrating to Juno and changing to GIT
Next Topic:Xtext maven generation
Goto Forum:
  


Current Time: Fri Apr 26 11:28:22 GMT 2024

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

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

Back to the top