Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Container/Compartment in Containers without Domain class
Container/Compartment in Containers without Domain class [message #1715559] Tue, 24 November 2015 11:34 Go to next message
Mehmet Karaman is currently offline Mehmet KaramanFriend
Messages: 63
Registered: November 2012
Location: Berlin
Member
Hello,

is it possible to create/bind a sub container to a feature? 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. 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?

Best Regards
m.emin
Re: Container/Compartment in Containers without Domain class [message #1715575 is a reply to message #1715559] Tue, 24 November 2015 12:29 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
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
Re: Container/Compartment in Containers without Domain class [message #1715578 is a reply to message #1715559] Tue, 24 November 2015 12:57 Go to previous message
Yariv Amar is currently offline Yariv AmarFriend
Messages: 29
Registered: October 2015
Junior Member
Hi
I'm not sure it's exactly what you need but, try looking on the uml-designer project. I think that the 'dashboard' view is kind of a workaround for you.
https://github.com/ObeoNetwork/UML-Designer/tree/master/plugins/org.obeonetwork.dsl.uml2.design/description
basically, they bind the container to the root model classs and then uses labels to define values like "Capture", "Design" etc.
Previous Topic:Update semantic resource programmatically
Next Topic:How to create Event Listener
Goto Forum:
  


Current Time: Fri Apr 26 14:16:29 GMT 2024

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

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

Back to the top