[furcas-discussion] Houston...
Uhl, Axel
axel.uhl at sap.com
Mon Feb 21 22:19:41 CET 2011
...we have a problem. After my attempt to execute the delayed reference resolving loop twice for the foreach propinits, a test in the TestForeachPredicateProperty class failed. It turns out that it runs without textblocks generation support. This in turn seems to cause the ParserTextBlocksHandler not to be subscribed as an observer during the parsing process. Yet in turn, the property init elements are not set on DelayedReferences in their queryElement attribute.
Now, when executing the foreach propinit, I'm trying to determine the template used to produce the foreach target. However, there is no property init attached to the Reference.
It turns out that it's not such a good idea to try to remember the Template in the ForEachContext for later comparison for re-use. Instead, I'm now storing the parser rule name / method name in the ForEachContext. This way, I can also perform a comparison whether or not to re-use a model element without having the text blocks handy.
So, as a heads-up, I've changed the ForEachContext part of the textblocks metamodel. Commit hopefully coming soon.
-- Axel
More information about the Furcas-discussion
mailing list