Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Change "Arrange All" Orientation
Change "Arrange All" Orientation [message #811483] Fri, 02 March 2012 11:58 Go to next message
Snakebyte Missing name is currently offline Snakebyte Missing nameFriend
Messages: 130
Registered: November 2011
Senior Member
Hello i have a question on customizing behaviour of the "Arrange All" function.
Normally all the nodes in are arranged "Bottom-up" as shown in the picture i appended.

Can i change this to a "Top-Down" Orientation quickly , without writing new layouts etc. ?

I think this is a typical use-case so it would be great if it can be fixed quickly.

Greetings
  • Attachment: default.jpeg
    (Size: 30.45KB, Downloaded 305 times)
Re: Change "Arrange All" Orientation [message #813447 is a reply to message #811483] Mon, 05 March 2012 09:17 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 29
Registered: July 2009
Junior Member
Hello,

I don't know exactly how to do this, but you can have a look to method
org.eclipse.gmf.runtime.diagram.ui.providers.internal.DefaultProvider.layoutTopDown(ConnectionEditPart)
that handles this functionality.

Regards,

Laurent

On 02/03/2012 12:58, Snakebyte Mising name wrote:
> Hello i have a question on customizing behaviour of the "Arrange All" function.
> Normally all the nodes in are arranged "Bottom-up" as shown in the picture i appended.
>
> Can i change this to a "Top-Down" Orientation quickly , without writing new layouts etc. ?
>
> I think this is a typical use-case so it would be great if it can be fixed quickly.
>
> Greetings
Re: Change "Arrange All" Orientation [message #829916 is a reply to message #813447] Tue, 27 March 2012 00:36 Go to previous messageGo to next message
Snakebyte Missing name is currently offline Snakebyte Missing nameFriend
Messages: 130
Registered: November 2011
Senior Member
This is what this function did :

protected boolean layoutTopDown(ConnectionEditPart poly) {
return false;
}


So i think you are wrong.
Re: Change "Arrange All" Orientation [message #829945 is a reply to message #829916] Tue, 27 March 2012 01:42 Go to previous messageGo to next message
Snakebyte Missing name is currently offline Snakebyte Missing nameFriend
Messages: 130
Registered: November 2011
Senior Member
solved
Re: Change "Arrange All" Orientation [message #831182 is a reply to message #829945] Wed, 28 March 2012 15:16 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 29
Registered: July 2009
Junior Member
On 27/03/2012 03:42, Snakebyte Mising name wrote:
> solved

Hello,

Could you say how for other persons that would have the same question?

Regards,

Laurent
Re: Change "Arrange All" Orientation [message #837799 is a reply to message #831182] Fri, 06 April 2012 05:25 Go to previous messageGo to next message
Oskar van Rest is currently offline Oskar van RestFriend
Messages: 13
Registered: February 2012
Junior Member
Currently trying to achieve the same. It would really help if you could let us know how you did it. Smile
Re: Change "Arrange All" Orientation [message #837804 is a reply to message #837799] Fri, 06 April 2012 05:37 Go to previous message
Oskar van Rest is currently offline Oskar van RestFriend
Messages: 13
Registered: February 2012
Junior Member
Found it!

Add the following extension to plugin.xml (of the generated GMF diagram project).
<extension point="org.eclipse.gmf.runtime.diagram.ui.layoutProviders">
<?gmfgen generated="false"?>
 <layoutProvider class="org.eclipse.gmf.runtime.diagram.ui.providers.TopDownProvider">
  <Priority name="High"></Priority>
 </layoutProvider>
</extension> 
Previous Topic:How to add 2D/3D animation to a GMF generated diagram surface
Next Topic:GMF UI fill error
Goto Forum:
  


Current Time: Thu Apr 18 10:33:37 GMT 2024

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

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

Back to the top