why save failed [message #677676] |
Thu, 09 June 2011 02:42  |
Eclipse User |
|
|
|
hi,
I use GMF to develope a modeling tool,
i got a trouble that when i adjust the connection Anchor,from p1 to p2
by set the sourceAnchor and targetAnchor
EllipseAnchor sourceAnchor = new EllipseAnchor((IFigure)sep.getFigure());
EllipseAnchor targetAnchor = new EllipseAnchor((IFigure)tep.getFigure());
connectionEditpart.getConnectionFigure().setSourceAnchor(sourceAnchor);
connectionEditpart.getConnectionFigure().setTargetAnchor(targetAnchor);
it seems worked,but when i save and close the diagram and reopen it,it still not changed(as p1),
i examed the diagram file with UltraEdit,i see it has not been changed
so,why it obviously changed successfully in the canvas,but in the file,it was not changed at all?
(i tried 2 ways to save ,but it does'not work:
1 currentDiagramEditor.doSave
2 ctrl+s in the editer UI
and i failed)
thanks.
Attachment: 1.jpg
(Size: 4.40KB, Downloaded 468 times)
Attachment: 2.jpg
(Size: 4.04KB, Downloaded 461 times)
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.15840 seconds