|
|
|
|
|
|
|
|
|
|
Re: Node creation error [message #1786404 is a reply to message #1786366] |
Wed, 02 May 2018 13:51   |
Eclipse User |
|
|
|
Florian,
in fact, I'd like to know how a Sirius Diagram works in this situations. Look: In my Ecore model, when I want to add an MU, I click with right button on ContextDefinition and select "New Child", then I choose MU. The model automatically creates a link between then.
I was thinking about this: how can I create an MU and the Diagram automatically associate it to a ContextDefinition than I've been created before? I have to click in the ContextDefinition node before to add an MU?
I removed the "change context", but the MU wasn't created yet.
Sorry, it looks so easy but, as my very fisrt experience, I'm a little bit lost.
Regards.
|
|
|
|
|
Re: Node creation error [message #1786444 is a reply to message #1786438] |
Thu, 03 May 2018 06:52   |
Eclipse User |
|
|
|
Julien, I did this before.
First, in the Change Context operation, when I use the var:container, I can observe that is setted to mobcons::Specification
After this, in the Create Instance operation, when I use 'Ctrl+space', the objects available in Reference Name are contextdefinition, restrictiondefinition and rule. I choose contextdefinition, then, the only one object available in Type Name is mobcons::ContextDefinition. But I want to create a MU node, not a ContextDefinition one.
When I validate the node creation, a error occurs: Invalid feature 'contextdefinition' for the following types mobcons::ContextDefinition
I made a test now. Using the Sirius interpreter, the var:container is always setted to Specification object, even when I click in any object. But the var:self shows me the object clicked by the user.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06454 seconds