Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Compartments and metaclass hierarchy
Compartments and metaclass hierarchy [message #145362] Sun, 05 August 2007 08:09 Go to next message
Eclipse UserFriend
Hello all,

after playing around with the common examples I began to create my first
own editor intended for one subdomain of my domain model.
The diagram root element (class A) has a composition to multiple
elements of class B. Class B is abstract, it's subclasses are used for
Node Mappings.

Is there a way to define only one Compartment Mapping for all these
subclasses? Otherwise the amount of maintenance points would increase,
so I want to avoid this.

Thanks in advance for your answers.

Axel
Re: Compartments and metaclass hierarchy [message #145720 is a reply to message #145362] Wed, 08 August 2007 03:53 Go to previous messageGo to next message
Eclipse UserFriend
Are there any suggestions, please?

Greetings,
Axel


Axel Guckelsberger schrieb:
> Hello all,
>
> after playing around with the common examples I began to create my first
> own editor intended for one subdomain of my domain model.
> The diagram root element (class A) has a composition to multiple
> elements of class B. Class B is abstract, it's subclasses are used for
> Node Mappings.
>
> Is there a way to define only one Compartment Mapping for all these
> subclasses? Otherwise the amount of maintenance points would increase,
> so I want to avoid this.
>
> Thanks in advance for your answers.
>
> Axel
Re: Compartments and metaclass hierarchy [message #149071 is a reply to message #145720] Wed, 05 September 2007 09:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gregory.vanseghbroeck.intec.ugent.be

Axel,

I want to do the same intuitive thing. But noticed that the "Gen
Compartement" object has a 1-to-many relation with a "Gen Child Node"
object, meaning that a child node is capable of containing several
compartements, but a compartement can only belong to one child node.

I wonder why this design decision was made?
But for now (at least to my humble opinion) we are stuck with creating
zillions of identical compartements or make some drastic changes to the
generated code.

Kind Regards,
Gregory
Re: Compartments and metaclass hierarchy [message #149086 is a reply to message #149071] Wed, 05 September 2007 10:25 Go to previous message
Eclipse UserFriend
Not for me, what I needed was exactly many child nodes ;-)


Gregory Van Seghbroeck schrieb:
> Axel,
>
> I want to do the same intuitive thing. But noticed that the "Gen
> Compartement" object has a 1-to-many relation with a "Gen Child Node"
> object, meaning that a child node is capable of containing several
> compartements, but a compartement can only belong to one child node.
>
> I wonder why this design decision was made?
> But for now (at least to my humble opinion) we are stuck with creating
> zillions of identical compartements or make some drastic changes to the
> generated code.
>
> Kind Regards,
> Gregory
>
Previous Topic:Why object and context elements in editpolicyProvider
Next Topic:create link : ICommandProxy not executed !
Goto Forum:
  


Current Time: Fri May 09 04:16:59 EDT 2025

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

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

Back to the top