|
|
|
Re: XText 1.0.2 - EcoreUtil.copy and ^ escaped not working [message #743588 is a reply to message #743464] |
Fri, 21 October 2011 15:43 |
|
Hi,
i cannot respoduce this using Xtext 1.0.2, the greeting example and following code
public class Main {
public static void main(String[] args) throws IOException {
Injector injector = new MyDslStandaloneSetup().createInjectorAndDoEMFRegistration();
ResourceSet rs = injector.getInstance(ResourceSet.class);
Resource r1 = rs.getResource(URI.createURI("src/test.mydsl"), true);
r1.load(null);
Model m1 = (Model) r1.getContents().get(0);
Model m2 = EcoreUtil2.clone(m1);
Resource r2 = rs.createResource(URI.createURI("src/test2.mydsl"));
r2.getContents().add(m2);
r2.save(null);
}
}
and input model
ps (using the clone method that delegates to the copy method)
~Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
[Updated on: Fri, 21 October 2011 15:44] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03465 seconds