org.eclipse.xtext.resource.impl.EObjectDescriptionLookUp Java Examples
The following examples show how to use
org.eclipse.xtext.resource.impl.EObjectDescriptionLookUp.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractLibraryGlobalScopeProvider.java From statecharts with Eclipse Public License 1.0 | 6 votes |
@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)); }
Example #2
Source File: XtendResourceDescription.java From xtext-xtend with Eclipse Public License 2.0 | 5 votes |
@Override protected EObjectDescriptionLookUp getLookUp() { if ((this.lookup == null)) { List<IEObjectDescription> _computeExportedObjects = this.computeExportedObjects(); EObjectDescriptionLookUp _eObjectDescriptionLookUp = new EObjectDescriptionLookUp(_computeExportedObjects); this.lookup = _eObjectDescriptionLookUp; } return this.lookup; }
Example #3
Source File: FixedCopiedResourceDescription.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
@Override protected EObjectDescriptionLookUp getLookUp() { if (lookup == null) { lookup = new PatternAwareEObjectDescriptionLookUp(computeExportedObjects()); } return lookup; }
Example #4
Source File: FingerprintResourceDescription.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
@Override protected EObjectDescriptionLookUp getLookUp() { if (lookup == null) { lookup = new PatternAwareEObjectDescriptionLookUp(computeExportedObjects()); } return lookup; }
Example #5
Source File: SimpleResourceDescription.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
@Override protected EObjectDescriptionLookUp getLookUp() { if (lookup == null) { lookup = new PatternAwareEObjectDescriptionLookUp(computeExportedObjects()); } return lookup; }
Example #6
Source File: ResourceDescription2.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
@Override protected EObjectDescriptionLookUp getLookUp() { if (lookup == null) { lookup = new PatternAwareEObjectDescriptionLookUp(Collections.emptyList()); lookup.setExportedObjects(computeExportedObjects()); } return lookup; }