use of org.eclipse.xtext.resource.impl.EObjectDescriptionLookUp in project xtext-xtend by eclipse.
the class XtendResourceDescription method getLookUp.
@Override
protected EObjectDescriptionLookUp getLookUp() {
if ((this.lookup == null)) {
List<IEObjectDescription> _computeExportedObjects = this.computeExportedObjects();
EObjectDescriptionLookUp _eObjectDescriptionLookUp = new EObjectDescriptionLookUp(_computeExportedObjects);
this.lookup = _eObjectDescriptionLookUp;
}
return this.lookup;
}
use of org.eclipse.xtext.resource.impl.EObjectDescriptionLookUp in project statecharts by Yakindu.
the class STextScopeProvider method scope_ActiveStateReferenceExpression_value.
public IScope scope_ActiveStateReferenceExpression_value(EObject context, EReference reference) {
Statechart statechart = getStatechart(context);
if (statechart == null)
return IScope.NULLSCOPE;
List<State> allStates = EcoreUtil2.getAllContentsOfType(statechart, State.class);
IScope scope = Scopes.scopeFor(allStates, nameProvider, IScope.NULLSCOPE);
return new ImportScope(getActiveStateNormalizer(context), scope, new EObjectDescriptionLookUp(Lists.newArrayList(scope.getAllElements())), reference.getEReferenceType(), false);
}
Aggregations