[AQL] Change Context Back [message #1744973] |
Mon, 03 October 2016 11:17  |
Eclipse User |
|
|
|
Hello,
is there a possibility to query to jump backwards in the context with AQL?
My situation is the following: I have two nodes: OFFICE and PRINTER, they have a normal reference (no containment). PRINTER should be created as a bordered node of OFFICE. Both nodes are contained by the diagrams mother node COMPANY.
So when modelling, I click with my PRINTER-Tool on MyOFFICEInstance to create a new instance of PRINTER. So, in my implementation, after "|> Begin" I have to change the context to MyCOMPANYInstance (aql:self.eContainer()), in order to create a new PRINTER (because it is contained by COMPANY and not by OFFICE).
But after the creation of MyPRINTERInstance I want to set the reference of it to the MyOFFICEInstance, I clicked on (or it can also work vice versa, so set the reference of MyOFFICEInstance, I clicked on, to the just created MyPRINTERInstance).
But I don't find a way to refer back to the MyOFFICEInstance, that I clicked on.
Is there a way to change the context back, after changing it to the mother node MyCOMPANYInstance or refer in another way to the element I clicked on?
Cheers
Emil
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02502 seconds