Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to define Top and Bottom for TopDownLayoutProvider?
How to define Top and Bottom for TopDownLayoutProvider? [message #220957] Tue, 10 March 2009 14:29 Go to next message
Christian Muth is currently offline Christian MuthFriend
Messages: 24
Registered: July 2009
Junior Member
Hello all,


I have a model with a graphical representation similar to UML activity
diagrams.
When i use the "Arrange All" functionality, the graph is layouted by
(default) TopDownLayoutProvider which is quite fine.

My problem now is that the "EndNode" which should actually be at the
bottom is layouted to the top and "StartNode" is layouted to bottom while
it should be placed on top.

I have only incoming connections to "EndNode" and only outgoing
connections from "StartNode" so I would expect the behaviour of
TopDownLayoutProvider to be the exact opposite.

What am I doing wrong?


Thanks a lot in advance!


Christian
Re: How to define Top and Bottom for TopDownLayoutProvider? [message #221081 is a reply to message #220957] Tue, 10 March 2009 16:12 Go to previous messageGo to next message
Christian Muth is currently offline Christian MuthFriend
Messages: 24
Registered: July 2009
Junior Member
> (default) TopDownLayoutProvider which is quite fine.
Sorry, it's the TopDownProvider of course.

Any help would be greatly appreciated as this should be something others
might need as well?


tia

Christian
Re: How to define Top and Bottom for TopDownLayoutProvider? [SOLVED] [message #221090 is a reply to message #221081] Tue, 10 March 2009 16:18 Go to previous message
Christian Muth is currently offline Christian MuthFriend
Messages: 24
Registered: July 2009
Junior Member
Hi again,


I solved the problem by myself: I assumed the default layout to be
TopDownProvider but that obviously wasn't the case.
After I added the extension point:

<extension
point="org.eclipse.gmf.runtime.diagram.ui.layoutProviders">
<layoutProvider

class=" org.eclipse.gmf.runtime.diagram.ui.providers.TopDownProvider ">
<Priority
name="Highest">
</Priority>
</layoutProvider>
</extension>

to my plugin.xml, i get the desired effect.

Just in case some other guy might find that useful...



Cheers

Christian
Previous Topic:Creating "invisible" diagram parts
Next Topic:OCl to check whether link is coming form source feature defined(Please Help))
Goto Forum:
  


Current Time: Fri Mar 29 13:26:43 GMT 2024

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

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

Back to the top