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 11:31 Go to next message
Andrew Gacek is currently offline Andrew Gacek
Messages: 30
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 11:41 Go to previous message
Andrew Gacek is currently offline Andrew Gacek
Messages: 30
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: Wed Jul 30 09:09:27 EDT 2014

Powered by FUDForum. Page generated in 0.02032 seconds