Java源码示例:org.eclipse.xtext.resource.impl.EObjectDescriptionLookUp

示例1
@Override
public IScope getScope(Resource context, EReference reference, Predicate<IEObjectDescription> filter) {
	List<IEObjectDescription> descriptions = Lists.newArrayList();
	for (URI uri : getValidLibraries(context)) {
		try {
			Iterables.addAll(descriptions, libraryCache.get(uri, new Callable<Iterable<IEObjectDescription>>() {

				@Override
				public Iterable<IEObjectDescription> call() throws Exception {
					return getDescriptions(context, uri);
				}
			}));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	return SelectableBasedScope.createScope(IScope.NULLSCOPE, new EObjectDescriptionLookUp(descriptions),
			reference.getEReferenceType(), isIgnoreCase(reference));
}
 
示例2
@Override
protected EObjectDescriptionLookUp getLookUp() {
  if ((this.lookup == null)) {
    List<IEObjectDescription> _computeExportedObjects = this.computeExportedObjects();
    EObjectDescriptionLookUp _eObjectDescriptionLookUp = new EObjectDescriptionLookUp(_computeExportedObjects);
    this.lookup = _eObjectDescriptionLookUp;
  }
  return this.lookup;
}
 
示例3
@Override
protected EObjectDescriptionLookUp getLookUp() {
  if (lookup == null) {
    lookup = new PatternAwareEObjectDescriptionLookUp(computeExportedObjects());
  }
  return lookup;
}
 
示例4
@Override
protected EObjectDescriptionLookUp getLookUp() {
  if (lookup == null) {
    lookup = new PatternAwareEObjectDescriptionLookUp(computeExportedObjects());
  }
  return lookup;
}
 
示例5
@Override
protected EObjectDescriptionLookUp getLookUp() {
  if (lookup == null) {
    lookup = new PatternAwareEObjectDescriptionLookUp(computeExportedObjects());
  }
  return lookup;
}
 
示例6
@Override
protected EObjectDescriptionLookUp getLookUp() {
  if (lookup == null) {
    lookup = new PatternAwareEObjectDescriptionLookUp(Collections.emptyList());
    lookup.setExportedObjects(computeExportedObjects());
  }
  return lookup;
}