Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » Serialize a ChangeDescription
Serialize a ChangeDescription [message #616436] Mon, 18 May 2009 14:40
Mark Gunnels is currently offline Mark GunnelsFriend
Messages: 7
Registered: July 2009
Junior Member
I am attempting to serialize a ChangeDescription along with the model it
is performing a "change recording" on. The resulting XML contains the
description of the model but lacks the ChangeDescription. Can anyone
provide example code of a successful ChangeDescription serialization or
review the below code and tell me where I'm erring?

ResourceSet resourceSet = new ResourceSetImpl();
resourceSet.getResourceFactoryRegistry().getExtensionToFacto ryMap().put( "*",
new XMLResourceFactoryImpl());
Resource resource =
resourceSet.createResource(URI.createURI("/Users/markgunnels/temp/cd5.xml "));

ChangeRecorder cr = new ChangeRecorder(resourceSet);


ChangeDescription cd = cr.endRecording();
catch (IOException e)

I am using org.eclipse.emf.ecore.change_2.4.0.v200808251517.jar.

Thanks very much for any assistance.
Previous Topic:Properties not displayed after adding an ecore to genmodel
Next Topic:Serialize a ChangeDescription
Goto Forum:

Current Time: Tue Jun 19 16:37:32 GMT 2018

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

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

Back to the top