Containers and Sub-Containers Problem [message #1732807] |
Fri, 20 May 2016 07:15  |
Eclipse User |
|
|
|
Hello,
I have a very complicated problem.
As described in a few topics earlier, I have a model in which containers should contain other containers, but in my model they are on the same level and the containment is regulated with a "Containment" model element which has the features "contained Node" and "containing Node".
To display the containers I described 2 Containers (AgentContainer and ContainedAgents) where ContainedAgents is a Sub-Container of AgentContainer. In Addition I set ContainedAgents as Reused Container Mappings to ContainedAgents.
First Question: Is it possible to display the containers with only one Container?
Furthermore, I created a Container Drop with Containers: diagram, AgentContainer,ContainedAgents
and Mappings: AgentContainer and ContainedAgents
After Begin I create a new ContainerInstance and I set the childrens feature from the newSemanticContainer and the containers feature from the element to the new instance.
Now, when I drop an AgentContainer(p1) to another AgentContainer(p2), p1 changes from AgentContainer to ContainedAgents and so it also changes the style. In Addition, the position in p2 is not there where I leave the it. It just arranges itself.
Second Question: How can I avoid this?
Regards
|
|
|
|
|
Powered by
FUDForum. Page generated in 1.08482 seconds