|
Re: Strange scoping behaviour [message #764745 is a reply to message #764679] |
Mon, 12 December 2011 19:24 |
|
Hi,
a complete reproducable grammar would have been helpful. never the less: what happens is absoulutely correct!
you may be missing a
public IScope scope_FieldPath_field(FieldPath fp, EReference ref) {
}
method.
never the less have a look at http://dslmeinte.wordpress.com/2010/08/16/path-expressions-in-entity-models/
to get an idea what to do
result may be something like (untested)
public IScope scope_FieldPath_field(FieldPath fp, EReference ref) {
EObject parent = fp.eContainer();
if (parent instanceof DataFlowPath) {
return scope_FieldPath_field((DataFlowPath)parent, ref);
} else if (parent instanceof FieldPath) {
Type t = ((FieldPath)parent).getField().getType();
if (t instanceof ObjectType)
{
return Scopes.scopeFor(((ObjectType)t).getFields());
}
}
return IScope.NULLSCOPE;
}
~Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
[Updated on: Mon, 12 December 2011 19:37] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02742 seconds