org.eclipse.xtext.resource.impl
Class ResourceSetBasedResourceDescriptions
java.lang.Object
org.eclipse.xtext.resource.impl.AbstractCompoundSelectable
org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions
- All Implemented Interfaces:
- IResourceDescriptions, IResourceDescriptions.IContextAware, ISelectable
- Direct Known Subclasses:
- LiveShadowedResourceDescriptions
public class ResourceSetBasedResourceDescriptions
- extends AbstractCompoundSelectable
- implements IResourceDescriptions.IContextAware
- Author:
- Sven Efftinge - Initial contribution and API, Holger Schill
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ResourceSetBasedResourceDescriptions
public ResourceSetBasedResourceDescriptions()
setRegistry
public void setRegistry(IResourceServiceProvider.Registry registry)
getResourceSet
public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
getAllResourceDescriptions
public java.lang.Iterable<IResourceDescription> getAllResourceDescriptions()
- Specified by:
getAllResourceDescriptions
in interface IResourceDescriptions
getSelectables
protected java.lang.Iterable<? extends ISelectable> getSelectables()
- Specified by:
getSelectables
in class AbstractCompoundSelectable
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.
hasDescription
protected boolean hasDescription(org.eclipse.emf.common.util.URI uri)
- Since:
- 2.1
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
setContext
public void setContext(org.eclipse.emf.common.notify.Notifier ctx)
- Specified by:
setContext
in interface IResourceDescriptions.IContextAware
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object