I have a Concept A that extends Expression and has a reference on Concept B.
A is just a "connector" to B so that I can build a bool expression out of different Bs : B1 => B2 && B3 .
My ultimate goal is recalculate the expression every time a reference is changed. I know I could use a listener, but I dont want to.
What I did is use the setHandler of the Contraints Aspect on Concept A. The problem are the contents of the 3 parameters of the setHandler.
referenceNode : gives me a copy of the original that is not in the tree, but will be in the tree when i check after the setHandler. The ref is alredy pointing to the new ref. How I know it is not in the tree , i checked the NodeID before and after and also calling "referenceNode.parent" in the setHandler gives me NULL
oldRef : gives me NULL
newRef : gives me the newRef
When I build a Concept A that does NOT EXTEND Expression and has a ref to Concept B, the setHandler in the Constraint gives me the original node and everything is fine.
So my assumption is that some sidetransform or something that I inherite from Expression does create a copy before the setHanlder is called.
I seached for something like this in the baseLanguage but wasnt sucessfull.
Anyone has an idea where the problem is ?
Thx in advance.