Scope method not execute? [message #991272] |
Tue, 18 December 2012 09:40 |
|
I've got this IScope method:
IScope scope_Assignment(AssignmentOrFBCall a, EReference ref){
System.out.println(a.toString());
return IScope.NULLSCOPE;
}
but it doesn't produce any results. Nothing in output with println and content assistant does not change. So I thought it hasn't be executed, but if I try to add a breakpoint, it will be crossed.
So, where is the problem?
Grammar rule is this:
AssignmentOrFBCall:
(((variable=[VariableDefinition]) |
((variableArray=[ArrayDefinition]'['index=ExpressionIndex']')('.'internalVariable=InternalRecursive)?) |
(variableStructOrFB=[VariableDefinition]'.')(internalVariable=InternalRecursive))
((':='expression=Expression)|('('(parameter=FBParameter | ')'))))
;
|
|
|
|
|
Re: Scope method not execute? [message #991462 is a reply to message #991288] |
Wed, 19 December 2012 10:43 |
|
Alexander Nittka wrote on Tue, 18 December 2012 12:06Hi,
the name of the scope method must be correct as well. Debug the getPredicate method in AbstractDeclarativeScopeProvider to see the "expected" method name.
Alex
Ok,
I'll try it.
Very thank you.
|
|
|
Powered by
FUDForum. Page generated in 0.03531 seconds