Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsLayout information persistence
https://www.eclipse.org/forums/index.php/mv/msg/74800/233641/#msg_233641
Im working on a model to text transformer to generate html file from the
GMF model.
I have some problem with the persisted model because it does not contain
all the relevant information for the transformation, for example: the
width and the height fields are set to auto-size (-1) or if the diagram
was not 'touched' then the file contains only the root diagram node.
My question is that how can I persist the relevant nodes and fields even
if their graphical information was not modified?
Thanks in advance,
Bence
B2International]]>Bence Ol2009-06-15T10:16:08-00:00Re: Layout information persistence
https://www.eclipse.org/forums/index.php/mv/msg/74800/233855/#msg_233855
the OffscreenEditPart and iterating through the children list. With this
solution there is no need to open an editor. The editparts' figures are
containing the 'real' layout information, not just '-1' values.
However it would be nice if I could persist all the graphical information
to the diagram file and later load it back.]]>Bence Ol2009-06-17T07:52:17-00:00[Solved] Layout information persistence
https://www.eclipse.org/forums/index.php/mv/msg/74800/234121/#msg_234121
XXXMetamodelDiagramEditor.initializeGraphicalViewerContents( ) method to
execute an auto-layout command and then the diagram file is saved: