|
Re: Container/Compartment in Containers without Domain class [message #1715575 is a reply to message #1715559] |
Tue, 24 November 2015 12:29 |
|
Hello
Le 24/11/2015 12:34, Emin M. a écrit :
> Hello,
>
> is it possible to create/bind a sub container to a feature?
Any diagram element is bound to a semantic object, the binding to a
feature as you mention is done through the semantic candidates
expression the mappings.
For example:
> I want to show a class and its operations and attributes in different
> compartments. Currently i can show them only in the same compartment,
> because the domain class needs to be filled.
The domain class is mandatory for all mappings. A mapping without domain
class is not valid and Sirius will not evaluate it.
Shouldn't it also allow to
> give only a feature instead of domain class? So i could enter
> feature:attributes for the attributes compartment and feature:operations
> for the operations compartment.
> Is this currently possible or what is the way to realize this?
You need the following mapping structure (then do not forget the styles):
. ContainerMapping "Class" (domain class: "yourpkg.YourClassEClass",
childrenPresentation:VertcialStack)
. ContainerMapping "Attr compartment" (domain class:
"yourpkg.YourClassDomainClass", semantic candidates expression:
"var:self", childrenPresentation:List)
. NodeMapping "attr" (domainClass "yourpkg.YourAttrEClass",
semanticCandidatesExpress: "feature:yourAttrFeatureName" (feature of you
Class EClass)
. ContainerMapping "Op compartment" (domain class: "A", semantic
candidates expression: "var:self", childrenPresentation:List)
. NodeMapping "op" (domainClass "yourpkg.YourOperationEClass"
var:self as semantic candidates expression allows you to indicate that
you do not want to navigate to another semantic element but you want to
compute another graphical element for the same element than the parent
container.
>
> Best Regards
> m.emin
Regards,
--
Maxime - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.02813 seconds