Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » ArrangeAll
ArrangeAll [message #202926] Thu, 21 August 2008 12:12 Go to next message
Eclipse UserFriend
Originally posted by: joachim9000.gmx.net

Hello,
i have a "custom" plugin to change some behaviour of my generated plugin.
I build a tree in that diagram and arrange everything. that works fine.

now i try to just show the root node. that works too, but the root is
displayed very far away on the right side. The code i use is the following:

********
List children = ((MapEditPart)mEP).getChildren();
ArrangeRequest arrangeRequest = new ArrangeRequest(
RequestConstants.REQ_ARRANGE_DEFERRED, LayoutType.DEFAULT);
arrangeRequest.setViewAdaptersToArrange(children);
Command arrangeCommand = mEP.getCommand(arrangeRequest);
mEP.getDiagramEditDomain().getDiagramCommandStack().execute( arrangeCommand);
********

I also tried this before but that doesn't work at all in no case:

********
ArrangeRequest arrangeRequest2 =
new ArrangeRequest(ActionIds.ACTION_ARRANGE_ALL);
********

Thanks!
Re: ArrangeAll [message #203087 is a reply to message #202926] Fri, 22 August 2008 07:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zippo29.hotmail.fr

Hi!

I think you have to create a layoutProvider. See the taipan example

HTH
Regads
Re: ArrangeAll [message #203166 is a reply to message #203087] Fri, 22 August 2008 12:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: joachim9000.gmx.net

i thought so too. But it doesn't work. If i use the top-down one, the one
node is set to the far bottom....
Re: ArrangeAll [message #203200 is a reply to message #203166] Sat, 23 August 2008 11:19 Go to previous message
Eclipse UserFriend
Originally posted by: zippo29.hotmail.fr

Hi!
Did you try to change the layoutType ? Or change the layoutProvider to see
if there is any changes?

I know also that in the cannonicalEditPolicy a ArrangeCommand is created
perhaps if you try creating your own command where you layout the elements
by a changeBoundsCommand


regards
Previous Topic:mindmap in cvs
Next Topic:Reference based links
Goto Forum:
  


Current Time: Fri May 16 15:48:45 EDT 2025

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

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

Back to the top