|[XPand dev] Tracing model access [message #531285]
||Tue, 04 May 2010 08:41
| No real name
Registered: May 2010
in the course of my current project I'm faced with the problem to trace any access that occurs in the context of a model to text transformation. My aim is to collect any model-elements that are involved during the evaluation of an expression Statement. For instance a feature call that accesses a certain property of a model element should result in the model-element being added to the involved elements list.
I'm curious if anyone could point me in the right direction regarding the classes that have to be modified in order to achieve the aforementioned issue. Right now I hook into the expressionStatement evaluation and have access to both, the ExpressionStatement as well as the XPandExecutionContext. I can easily evaluate the expression of the expression statement but am unsure how to retrieve the involved model-elements. It's kinda tough to work through the source-code, since I couldn't find any information on this topic. I'd appreciate any help or comments on this topic.
Powered by FUDForum
. Page generated in 0.07199 seconds