org.eclipse.xtext.scoping.impl
Class LoadOnDemandResourceDescriptions
java.lang.Object
org.eclipse.xtext.resource.impl.AbstractCompoundSelectable
org.eclipse.xtext.scoping.impl.LoadOnDemandResourceDescriptions
- All Implemented Interfaces:
- IResourceDescriptions, ISelectable
public class LoadOnDemandResourceDescriptions
- extends AbstractCompoundSelectable
- implements IResourceDescriptions
- Author:
- Sebastian Zarnekow - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoadOnDemandResourceDescriptions
public LoadOnDemandResourceDescriptions()
initialize
public void initialize(IResourceDescriptions delegate,
java.util.Collection<org.eclipse.emf.common.util.URI> validUris,
org.eclipse.emf.ecore.resource.Resource context)
getAllResourceDescriptions
public java.lang.Iterable<IResourceDescription> getAllResourceDescriptions()
- Specified by:
getAllResourceDescriptions
in interface IResourceDescriptions
isEmpty
public boolean isEmpty()
- Description copied from interface:
ISelectable
- Clients may want to check the selectable to skip its processing in case it is empty.
Implementations should be fast and not require expensive precalculation. Selectable may
return
false
if it is too expensive to compute the actual result.
- Specified by:
isEmpty
in interface ISelectable
- Overrides:
isEmpty
in class AbstractCompoundSelectable
- Returns:
true
if the selectable does not provide any descriptions.
getSelectables
protected java.lang.Iterable<? extends ISelectable> getSelectables()
- Specified by:
getSelectables
in class AbstractCompoundSelectable
getResourceDescription
public IResourceDescription getResourceDescription(org.eclipse.emf.common.util.URI uri)
- Description copied from interface:
IResourceDescriptions
- Returns the resource descriptions for the given URI. It's the client's responsibility to normalize the URI.
- Specified by:
getResourceDescription
in interface IResourceDescriptions