Compartment and Generalization [message #149131] |
Wed, 05 September 2007 13:20  |
Eclipse User |
|
|
|
Originally posted by: elena.renzi.gmail.com
Hi,
I have this problem: I have an Eclass in my ecore model that I call A,
which has an Ereference to some other object, instance of another Eclass,
that I call B. There is another Eclass in my Ecore model, C that is an
extension of B.
Now I'm creating some compartments in the node represents Eclass A, in the
first compartment I want to contains labels corresponding to Eclass B
references, and in the second compartment I want to contains labels
corresponding to Eclass C references. But when I add a type C label, this
one is also added in the compartment containing type B label, and if I
remove it from model I read a strange string..
I hope someone can help me and sorry for my english!
Thanks and regards,
Elena
|
|
|
|
Re: Compartment and Generalization [message #149403 is a reply to message #149131] |
Thu, 06 September 2007 07:17  |
Eclipse User |
|
|
|
Hi Elena,
Declaring two derived transient features in the A EClass (one to return
only C's and the other only for not-C's) may help. You will then use
these features as children feature of the NodeReference.
Best regards,
Boris
Elena wrote:
> Hi,
> I have this problem: I have an Eclass in my ecore model that I call A,
> which has an Ereference to some other object, instance of another
> Eclass, that I call B. There is another Eclass in my Ecore model, C that
> is an extension of B.
> Now I'm creating some compartments in the node represents Eclass A, in
> the first compartment I want to contains labels corresponding to Eclass
> B references, and in the second compartment I want to contains labels
> corresponding to Eclass C references. But when I add a type C label,
> this one is also added in the compartment containing type B label, and
> if I remove it from model I read a strange string..
> I hope someone can help me and sorry for my english!
> Thanks and regards,
>
> Elena
>
|
|
|
Powered by
FUDForum. Page generated in 0.03776 seconds