Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » SetBounds Command - Position and size problem
SetBounds Command - Position and size problem [message #202235] Mon, 18 August 2008 13:37 Go to next message
BG is currently offline BGFriend
Messages: 45
Registered: July 2009
Member
Hello all,
I am using the set bound command to set the position and size of the
editpart

eg :
SetBoundsCommand boundsCommand = new
SetBoundsCommand(getEditingDomain(),"",new
EObjectAdapter((View)graphicalEditPart.getModel()),rectangle .getCopy());
diagramEditPart.getDiagramEditDomain().getDiagramCommandStac k().execute(new
ICommandProxy(boundsCommand),monitor );

The command is working fine if its just a single editpart.But if the
editparts has children, on execution of this command changes the editpart
size .On every execution there delta increase in the size of the editpart.

I tried to debug but of no use.I also tried using RESIZE request which
also resulted in same problem.Can i known what could be the problem ?

Regards
BG
Re: SetBounds Command - Position and size problem [message #202310 is a reply to message #202235] Mon, 18 August 2008 23:48 Go to previous message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Hi,

If you want to modify the size of the children too, you'll have to create
separate commands for children. You could just pass the same request to
the children and get the "set bounds" from them.

Cheers,
Alex
Previous Topic:[Announce] GMF 2.2.0 I200808180951 is available
Next Topic:How can I handle the drag, using arrow keys?
Goto Forum:
  


Current Time: Thu Apr 25 12:42:48 GMT 2024

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

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

Back to the top