org.eclipse.xtext.resource.containers
Class FlatResourceSetBasedAllContainersState
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterImpl
org.eclipse.xtext.resource.containers.FlatResourceSetBasedAllContainersState
- All Implemented Interfaces:
- org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal, IAllContainersState
public class FlatResourceSetBasedAllContainersState
- extends org.eclipse.emf.common.notify.impl.AdapterImpl
- implements IAllContainersState
This implementation of IAllContainersState
puts all resources from a ResourceSet
into one single
container. Resource that are loaded after this class has been created are also considered.
- Since:
- 2.3
- Author:
- Moritz Eysholdt - Initial contribution and API
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
org.eclipse.emf.common.notify.Adapter.Internal |
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl |
target |
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl |
getTarget, notifyChanged, setTarget, unsetTarget |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
FlatResourceSetBasedAllContainersState
public FlatResourceSetBasedAllContainersState(org.eclipse.emf.ecore.resource.ResourceSet rs)
getHandle
public static java.lang.String getHandle()
equals
public boolean equals(java.lang.Object arg0)
- Overrides:
equals
in class java.lang.Object
getContainedURIs
public java.util.Collection<org.eclipse.emf.common.util.URI> getContainedURIs(java.lang.String containerHandle)
- Specified by:
getContainedURIs
in interface IAllContainersState
getContainerHandle
public java.lang.String getContainerHandle(org.eclipse.emf.common.util.URI uri)
- Specified by:
getContainerHandle
in interface IAllContainersState
getResourceSet
public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
getVisibleContainerHandles
public java.util.List<java.lang.String> getVisibleContainerHandles(java.lang.String handle)
- Specified by:
getVisibleContainerHandles
in interface IAllContainersState
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
isAdapterForType
public boolean isAdapterForType(java.lang.Object type)
- Specified by:
isAdapterForType
in interface org.eclipse.emf.common.notify.Adapter
- Overrides:
isAdapterForType
in class org.eclipse.emf.common.notify.impl.AdapterImpl
isEmpty
public boolean isEmpty(java.lang.String containerHandle)
- Specified by:
isEmpty
in interface IAllContainersState