Skip to main content



      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 09:37 Go to next message
Eclipse UserFriend
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 19:48 Go to previous message
Eclipse UserFriend
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 May 15 13:23:41 EDT 2025

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

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

Back to the top