Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » File does not save the position of the diagram components after calling ArrangeAll
File does not save the position of the diagram components after calling ArrangeAll [message #196539] Thu, 10 July 2008 16:27
Eclipse UserFriend
Originally posted by: monica.dt.web.de

Hello,

I create a new diagram, that is already filled with contents. By
creating and opening the new diagram I want to automatic arrange all
diagram components. Everything works fine (all components are arranged
correctly).

But when I close the new file and do nothing with it and then reopen the
file. The position of the components are wrong, like when they are not
arranged. How can that be? Does the file not save the position of the
components?

I call "arrange all" after creating and opening the new file.


Resource diagram =
ErmDiagramEditorUtil.createDiagram(diagramModelFilePage.getU RI(),monitor);
ErmDiagramEditorUtil.openDiagram(diagram);

IDiagramWorkbenchPart workPart =
(IDiagramWorkbenchPart)workbench.getActiveWorkbenchWindow(). getActivePage().getActivePart();
DiagramEditPart diaPart = workPart.getDiagramEditPart();

ArrangeRequest arrangeRequest = new
ArrangeRequest(ActionIds.ACTION_ARRANGE_ALL);
arrangeRequest.getViewAdaptersToArrange();
Command command = diaPart.getCommand(arrangeRequest);
command.execute();


Thanks,
Regards
Previous Topic:top container name
Next Topic:Labels show as <...>
Goto Forum:
  


Current Time: Mon May 25 06:03:30 GMT 2020

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

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

Back to the top