Change "Arrange All" Orientation [message #811483] |
Fri, 02 March 2012 11:58  |
Eclipse User |
|
|
|
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 328 times)
|
|
|
Re: Change "Arrange All" Orientation [message #813447 is a reply to message #811483] |
Mon, 05 March 2012 09:17   |
Eclipse User |
|
|
|
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 #837804 is a reply to message #837799] |
Fri, 06 April 2012 05:37  |
Eclipse User |
|
|
|
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>
|
|
|
Powered by
FUDForum. Page generated in 0.04753 seconds