|
|
Re: Saving GEF diagram [message #549578 is a reply to message #547736] |
Tue, 27 July 2010 09:17 |
René Messages: 45 Registered: July 2009 |
Member |
|
|
Hi Alireza,
I go along with Chris. Please look at the ShapesEditor-Examples. It describes carefully how to implement a save and load procedure for GEF. It uses an ObjectOutputStream to save the model object in a serialized fashion. You can find a detailed description here link along with the source code.
For myself I use XML-based approach to save the model data. It only distinguish form the ShapesEditor in the way the model data will be loaded in the setEditorInput(IEditorInput) method and the way how the data will be stored in the doSave() or doSaveAs() method of your editor class.
Regards,
René
[Updated on: Tue, 27 July 2010 09:18] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02200 seconds