Skip to main content



      Home
Home » Eclipse Projects » Sirius » Nest attributes of class inside container.
Nest attributes of class inside container. [message #1831425] Wed, 19 August 2020 09:43 Go to next message
Eclipse UserFriend
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 03:43 Go to previous message
Eclipse UserFriend
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
Previous Topic:XText to Sirius
Next Topic:Avoiding multiple representations of an element in diagram
Goto Forum:
  


Current Time: Mon Jun 23 17:30:05 EDT 2025

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

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

Back to the top