Skip to main content



      Home
Home » Eclipse Projects » Sirius » [AQL] Change Context Back
[AQL] Change Context Back [message #1744973] Mon, 03 October 2016 11:17 Go to next message
Eclipse UserFriend
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
Re: [AQL] Change Context Back [message #1745001 is a reply to message #1744973] Mon, 03 October 2016 23:32 Go to previous messageGo to next message
Eclipse UserFriend
PS: Here is a scheme of my EMF Meta-model
Re: [AQL] Change Context Back [message #1745009 is a reply to message #1744973] Tue, 04 October 2016 03:52 Go to previous messageGo to next message
Eclipse UserFriend
Hi Emil,

The variable "container" available from the node creation tool still references the "office" instance even if you performed a change context. The change context doesn't change the original tool variables references.

Regards,

Florian
Re: [AQL] Change Context Back [message #1745015 is a reply to message #1745009] Tue, 04 October 2016 04:34 Go to previous message
Eclipse UserFriend
Hello Florian,

thank you very much!
That works just awesome!

Cheers
Emil
Previous Topic:Only one Edge between two nodes
Next Topic:The problem with the commands Copy / Paste
Goto Forum:
  


Current Time: Wed Mar 26 05:07:24 EDT 2025

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

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

Back to the top