Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Aggregation of components
Aggregation of components [message #233989] Wed, 17 June 2009 16:21 Go to next message
Tobias Neef is currently offline Tobias NeefFriend
Messages: 17
Registered: July 2009
Junior Member
Hello,

I am looking for a good way to aggregate several elements in my editor to
one element without changing the underlying domain model. My idea would be
to create aggregation elements in the graphical model which represents the
information of the aggregated elements.

Is that a good idea or is there a better way doing that. Where can I start
with the implementation because till now I always had the graphical model
and the domain model synchronized.

Regards,
Tobias
Re: Aggregation of components [message #234057 is a reply to message #233989] Thu, 18 June 2009 11:40 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Tobias,

You can try shortcuts. You can have diagram-1 synchronized with domainModel-1
and you can add a shortcut to the element from domainModel-2 on diagram-1.
Metamodels (and diagram types) for domainModel-1 and domainModel-2 can be
different.

-----------------
Alex Shatalin
Re: Aggregation of components [message #234707 is a reply to message #234057] Thu, 25 June 2009 18:57 Go to previous messageGo to next message
Tobias Neef is currently offline Tobias NeefFriend
Messages: 17
Registered: July 2009
Junior Member
Hello,

thanks for your response. I am not sure if this will work in my case but I
will build a prototype to have a closer look at what I can do with
shortcuts and diagram partitioning.

Regards,
Tobias
Re: Aggregation of components [message #235030 is a reply to message #234707] Wed, 01 July 2009 20:44 Go to previous messageGo to next message
Tobias Neef is currently offline Tobias NeefFriend
Messages: 17
Registered: July 2009
Junior Member
Hello,

I think this approach does not work for my requirements. The problem is
that a different metamodel is different for a complete editor. As far as I
understand is there no possibility to say apply this model on only 3
elements on the diagram.

My target would be to have a way to select connections (which are the
direct representation of the business model) and replace them with another
connection which is somehow a summary of the selected elements. But this
should not be reflected in the businessmodel itself.

So is there probably a way to partly unsync the business model from the
diagram so that I am able to remove the edges in the notational model and
create my own edge which is linked to multiple aggregated elements?

Thanks,
Tobias
Re: Aggregation of components [message #235111 is a reply to message #235030] Thu, 02 July 2009 11:32 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Tobias,

Sure! See generated subclasses of CanonicalEditPolicy - this is a code responsible
for domain and diagram model synchronization.
In addition you can use CanonicalStyle as a way to switch on/off canonical
update for some particular diagram element.

-----------------
Alex Shatalin
Previous Topic:same node definitions for subclass
Next Topic:Generating an XML file based on the model
Goto Forum:
  


Current Time: Wed Mar 03 09:23:22 GMT 2021

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

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

Back to the top