Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » convert gef editor to gmf, performance with large diagrams
convert gef editor to gmf, performance with large diagrams [message #228331] Wed, 29 April 2009 13:11 Go to next message
Marco mvmsoft is currently offline Marco mvmsoftFriend
Messages: 14
Registered: July 2009
Location: Germany
Junior Member
We have a gef/emf editor using a core emf model and a visual emf model
which is easily handling several thousand edit parts in one diagram.
We think about "upgrading" to GMF. There are some questions related to
this:

1) Is GMF performance for large diagrams comparable to native GEF/EMF
editors ?
2) Is an "upgrade" possible, e.g. creating a new GMF editor model from
scratch and inserting the existing gef stuff as custom figures/edit
parts/edit policies ?
3) does gmf generate standard gef figures, edit parts, edit policies or
are they heavily using gmf runtime api ?
4) Is GMF suitable for non "shapes and connections" editors, we have a
special use case of deeply nested boxes where boxes can be rearranged more
like the gef flow examples, using no connections at all ?

Thanks in advance
Marco
Re: convert gef editor to gmf, performance with large diagrams [message #228365 is a reply to message #228331] Wed, 29 April 2009 14:33 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello mvmsoft,

> 1) Is GMF performance for large diagrams comparable to native GEF/EMF
> editors ?
It should be comparable.

> 2) Is an "upgrade" possible, e.g. creating a new GMF editor model from
> scratch and inserting the existing gef stuff as custom figures/edit
> parts/edit policies ?
Again, to some extend it is possible, but you should be ready to repackage
existing code because there are a number of super-classes (especially for
EditParts) in GMF and you have to inherit custom classes from there.

> 3) does gmf generate standard gef figures, edit parts, edit policies
> or are they heavily using gmf runtime api ?
Generated figures are plain GEF figures, so you can easily reuse existing
classes.
With EditParts it’s not so easy – there are a number of classes in GMF runtime,
so generated code will be extended from there.
You can reuse existing editpolicies taking into account the fact that a number
of requests/EditPolicies were added in GMF runtime, so you can expect changes
there as well..

> 4) Is GMF suitable for non "shapes and connections" editors, we have a
> special use case of deeply nested boxes where boxes can be rearranged
> more like the gef flow examples, using no connections at all ?
What is the difference between “shapes” and “deeply nested boxes” :-) It
is possible to describe endless hierarchy of figures in GMF, generate code
for it and display child elements of particular diagram element inside it’s
compartment in XYLayout.

-----------------
Alex Shatalin
Re: convert gef editor to gmf, performance with large diagrams [message #228572 is a reply to message #228365] Thu, 30 April 2009 16:25 Go to previous messageGo to next message
Marco mvmsoft is currently offline Marco mvmsoftFriend
Messages: 14
Registered: July 2009
Location: Germany
Junior Member
Hello Alex,

thanks for the quick answer ! This sounds good.

>> 4) Is GMF suitable for non "shapes and connections" editors, we have a
>> special use case of deeply nested boxes where boxes can be rearranged
>> more like the gef flow examples, using no connections at all ?
> What is the difference between “shapes” and “deeply nested boxes”
:-) It
> is possible to describe endless hierarchy of figures in GMF, generate code
> for it and display child elements of particular diagram element inside
it’s
> compartment in XYLayout.

Actually my worries are if gmf can easily handle non xy layout stuff as
well,
e.g. using FlowLayoutEditPolicy or flow examples
StructuredActivityLayoutPolicy.
Can I achieve using this by just setting some properties in the model(s)
e.g. changing "use xy layout" to "use flow layout" and correct edit
policies will be used or do I have to dig deep into generated and/or
runtime code to tweak it ?

Marco
Re: convert gef editor to gmf, performance with large diagrams [message #229362 is a reply to message #228572] Mon, 11 May 2009 14:16 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello mvmsoft,

XYLayout and FlowLayout are supported inside GMf compartments for now, so
i think you can easily use it. If you need some specific layout then you
have to implement it manually, but still I think it is possible to modify
generated code to support it.

-----------------
Alex Shatalin
Previous Topic:Help with hiding node
Next Topic:EMF file name
Goto Forum:
  


Current Time: Thu Mar 28 14:40:19 GMT 2024

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

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

Back to the top