I'm new to creating editors with Sirius and I have the following EMF model:
I want to create a Sirius editor for the given meta-model with different representations for Superclass A
and Subclass B
.
Both classes A
and B
can be instantiated and Class B
has additional attributes and references. In the representation for Subclass B
, I only want to show a limited number of attributes from Superclass A
and a few additional attributes from Subclass B
.
The idea is now to have different containers and depending on which class it is I want to show the respective container. So far when I have two containers defined in the Sirius editor, one for each class and I create an instance of Subclass B
I get now two containers in the representation, one with the representation meant for Superclass A
and one with the representation meant for Subclass B
.
Is there any way I can tell Sirius to only show the container of the respective class?