|Re: Save gef diagram or view as xml file [message #1132487 is a reply to message #1121158]
||Fri, 11 October 2013 03:19
| Igor Zapletnev
Registered: September 2012
You don't need save your diagram into xml, it is enought to save your diagram model GraphicalViewer.setContent(... your model here...).
If the model of your editor is EMF model you can serialize your diagram into XMI format. EMF supports this out of box (take a look at XMIResource class).
But if you have your custom model (some java objects) you need to define custom serialization/deserialization.
Powered by FUDForum
. Page generated in 0.01535 seconds