|
Re: DirectedGraphLayout [message #214760 is a reply to message #214147] |
Thu, 08 January 2009 12:29 |
Eclipse User |
|
|
|
Originally posted by: uwe.suedbeck.koeln.de
Hi Lavanya,
I'm also struggeling with this, but i think all you have to do is
setting the correct Layout-Provider in the Extension Point.
<extension name="SquareLayoutProvider"
point="org.eclipse.gmf.runtime.diagram.ui.layoutProviders">
<layoutProvider
class="de.ui.internal.provider.YourTopDownLayoutProvider">
<Priority name="Medium"/>
</layoutProvider>
</extension>
On your Editor-Extension Point you shoul be able to set a
defaultLayout-property. Then Debug in the provides(Ioperation
operation)-Method.
There are already several LayoutProviders that can handle DirectedGraph,
as TopDownProvider or RightToLeftProvider. If your Model satisfies the
requirements of directed graph (which actually seems to be my problem)
it should all work out of the box.
Hope this helps. Uwe
Lavanya schrieb:
> I want to set a DirectedGraphLayout to my canvas. I do not want this to
> execute for 'Arrange All' or a new action rather I want this to be my
> default layout. How do I define an edit policy to use this layout.
> Thanks for any help.
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.04119 seconds