Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Nest attributes of class inside container.
Nest attributes of class inside container. [message #1831425] Wed, 19 August 2020 13:43 Go to next message
Max Jordan is currently offline Max JordanFriend
Messages: 6
Registered: August 2020
Junior Member
Hi, I have the following class structure

https://i.imgur.com/PbMq6HK.jpg

and im trying to create a display that will list each individual context separately and then within that display each attribute of that context as an individual element (so i can add editing). Currently I have the following container structure which produces the following output

https://i.imgur.com/tsrZmvJ.jpg
https://i.imgur.com/k8i7WJt.jpg

We can ignore ConfigurationContainer for now.

TestContainer is a horizontal stack with domain class test and expression feature:test

ContextsContainer is a vertical stack with class contexts and expression feature:contexts

ContextContainer is a list with class context and expression feature:context and also has the label feature:gui_name which is where Context1 and Context2 from the above image comes from.

Context name currently shows nothing and no matter what I try (including making ContextContainer free form and hardcoding a label in) I cant even get it to display anything, so that seems irrelevant for now.

How do I make it so within ContextContainer, each different attribute of the context class is displayed, and can be clicked on.
Re: Nest attributes of class inside container. [message #1831755 is a reply to message #1831425] Fri, 28 August 2020 07:43 Go to previous message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
Hi,

You defined ContextContainer mapping as a list mapping, you might add a child node mapping to create the list elements.
As you want to add one item for each attribute, this will require to create one child node mapping with aql:self as semantic candidate expression, Context as domain class and feature:YourAttributeName as label expression.
Then you can create a specific direct edit tool for each list item mapping to set the corresponding attribute.

Regards


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:XText to Sirius
Next Topic:Avoiding multiple representations of an element in diagram
Goto Forum:
  


Current Time: Thu Apr 25 11:15:18 GMT 2024

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

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

Back to the top