How to access a view variable in the Precondition context? [message #1695501] |
Fri, 15 May 2015 06:56 |
Eclipse User |
|
|
|
Hello,
does anyone know, if there is a way to be able to access a view variable like "containerView" or "diagram" in the context of a Precondition? It seems like there is only the "container" variable accessible.
What I want to do:
I want to set a Precondition in a NodeCreateDescription. In this Precondition I need to access the semantic element (target) of the diagram (in which this NodeCreationDescription is located). This would not be a problem if the accessible "container" variable would be a containment of the semantic element of this diagram. But this is not the case, as I am changing the semantic element of the diagram via a corresponding Root Expression in the corresponding Diagram Description.
In general I think it would be a good idea to provide "containerView" and "diagram" as variables in the Precondition, as those variables are also explicitly available in the "child context" of a NodeCreationDescription for example to create new instances. Therefor it would be quite useful to have this information at hand in the corresponding Precondition as well.
If there is only the "container" variable accessible at the moment, I would really appreciate if anyone could give me a hint how to get to the corresponding view element or the surrounding diagram part. Even if it would mean to do so on the Java side. Please let me know.
Thank you in advance,
Benjamin.
Remark: getting rid of the Root Expression in the Diagram Description would not be an option for me to solve this problem
|
|
|
Powered by
FUDForum. Page generated in 0.02919 seconds