Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsPut Figures/Nodes in a fixed location in the canvas when opening the Editor?
https://www.eclipse.org/forums/index.php/mv/msg/322323/835931/#msg_835931
How do you automatically put the Nodes or Figures to a certain position/location in the canvas when opening the editor?
Is there any example or reference out there on how to do it?
As always, appreciate the help you guys provide!
Thanks!
Che]]>Che Bumagat2012-04-03T21:34:28-00:00Re: Put Figures/Nodes in a fixed location in the canvas when opening the Editor?
https://www.eclipse.org/forums/index.php/mv/msg/322323/836245/#msg_836245
try to use the notational model.
Bounds b = NotationFactory.eINSTANCE.createBounds();
b.setX(x);
b.setY(y);
middleNode.setLayoutConstraint(b);