LayoutProvider? LayoutManager? [message #522603] |
Tue, 23 March 2010 01:52 |
Eclipse User |
|
|
|
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 01:52  |
Eclipse User |
|
|
|
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?
|
|
|
Powered by
FUDForum. Page generated in 0.03492 seconds