|
|
Re: What's wrong with this cross-reference [message #988875 is a reply to message #988709] |
Mon, 03 December 2012 14:14 |
Julian Dax Messages: 3 Registered: December 2012 |
Junior Member |
|
|
Thanks Henrik,
I've implemented the getScope method and now I don't get the error anymore. However autocompletion does not work. Is there anything wrong with this method or do I need to implement anything else?
public class StatesLanguageScopeProvider extends AbstractDeclarativeScopeProvider {
@Override
public IScope getScope(EObject context, EReference reference) {
if(context.eContainer() instanceof EventInvocationImpl){
EventInvocationImpl eventInvocation = (EventInvocationImpl) context.eContainer();
return Scopes.scopeFor(eventInvocation.getEventName().getParams());
}
IScope scope = super.getScope(context, reference);
return scope;
}
}
[Updated on: Mon, 03 December 2012 14:36] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03064 seconds