Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » LayoutProvider? LayoutManager?
LayoutProvider? LayoutManager? [message #522603] Tue, 23 March 2010 05:52
user is currently offline userFriend
Messages: 296
Registered: July 2009
Senior Member
Hello GMF-List !

I'm currently working on a automated transformation from one EMF Model
to another, which is working pretty good up to now. I also generated a
GMF Editor for both models, but now i have the problem, that the
generated model (a bunch of graphs) is one ugly bulk in the generated
diagram. So i'm trying to implement a layout algorithm for the generated
diagram.

What is the favourite way to control the layout of the elements during
the initialization of the diagram? I already read about
LayoutNodeProvider, but i also found the LayoutManager (which seems to
be more Draw2D?)
It seems that the layout() Methods of both classes are called, if a
element is created or rearranged? I dont't understand the connection
between those 2 classes. What it be enough to implement a new
LayoutProvider with a high priority? Or do i have to change the Manager,
too?
Re: LayoutProvider? LayoutManager? [message #522604 is a reply to message #522603] Tue, 23 March 2010 05:52 Go to previous message
user is currently offline userFriend
Messages: 296
Registered: July 2009
Senior Member
I forgot my name and my mail, sry :)

Regards, Mario

mario@dev2day.de

user@domain.invalid schrieb:
> Hello GMF-List !
>
> I'm currently working on a automated transformation from one EMF Model
> to another, which is working pretty good up to now. I also generated a
> GMF Editor for both models, but now i have the problem, that the
> generated model (a bunch of graphs) is one ugly bulk in the generated
> diagram. So i'm trying to implement a layout algorithm for the generated
> diagram.
>
> What is the favourite way to control the layout of the elements during
> the initialization of the diagram? I already read about
> LayoutNodeProvider, but i also found the LayoutManager (which seems to
> be more Draw2D?)
> It seems that the layout() Methods of both classes are called, if a
> element is created or rearranged? I dont't understand the connection
> between those 2 classes. What it be enough to implement a new
> LayoutProvider with a high priority? Or do i have to change the Manager,
> too?
Previous Topic:Display a magnifier dialog when pointing some area of the diagram
Next Topic:Label centered ?
Goto Forum:
  


Current Time: Fri Apr 26 03:43:33 GMT 2024

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

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

Back to the top