GMF set & get View Location [message #1118388] |
Fri, 27 September 2013 11:03 |
serhat gezgin Messages: 243 Registered: January 2013 Location: Izmir |
Senior Member |
|
|
Hi all,
I need get location (x,y) of node on diagram. Couse when i regenerate diagram i want to put this node to same location (i want to store location to model.)
Sample;
I must transform one of my element via java as;
TextInput newElement = FormFactory.eINSTANCE.createTextInput();
UIFieldElementUtil.copyOfUIFieldElement(newElement, element);
parent.getOwnedObject().add(ECollections.indexOf(parent.getOwnedObject(), element, 0), newElement);
EcoreUtil.delete(element);
when i create newElement i want to set its location to element's location.
So i want to ask u how can i get view location and set view location ?
Regards
[Updated on: Fri, 27 September 2013 13:11] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03934 seconds