|
Re: Create a node by Selecting a different container [message #1831989 is a reply to message #1831884] |
Fri, 04 September 2020 09:09 |
|
Hello
The behavior you have is normal because when you click on the operator node, the context is the operator. So in this case, you need to change the context to the block before creating your instance of Port
You may use a switch/case model operation:
Switch
--case : aql:self.oclIsKindOf(Block)
---- Create Instance port
--case : aql:self.oclIsKindOf(Operator)
---- Change context: aql:self.eContainer() (supposing that the operator is contained in the block)
------Create Instance port
best regards
Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.03638 seconds