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 ofIAllContainersStatelooks whether aResourceDescriptionsDatais installed on the wrappedResourceSetand delegates to that. If no such adapter is installed it uses the contents of theResourceSet. Resource that are loaded after this class has been created are also considered.- Since:
- 2.3
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
-
Nested classes/interfaces inherited from interface org.eclipse.xtext.resource.containers.IAllContainersState
IAllContainersState.Provider
-
-
Constructor Summary
Constructors Constructor Description FlatResourceSetBasedAllContainersState(org.eclipse.emf.ecore.resource.ResourceSet rs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsURI(java.lang.String containerHandle, org.eclipse.emf.common.util.URI candidateURI)java.util.Collection<org.eclipse.emf.common.util.URI>getContainedURIs(java.lang.String containerHandle)java.lang.StringgetContainerHandle(org.eclipse.emf.common.util.URI uri)static java.lang.StringgetHandle()org.eclipse.emf.ecore.resource.ResourceSetgetResourceSet()java.util.List<java.lang.String>getVisibleContainerHandles(java.lang.String handle)booleanisAdapterForType(java.lang.Object type)booleanisEmpty(java.lang.String containerHandle)
-
-
-
Method Detail
-
getHandle
public static java.lang.String getHandle()
-
getContainedURIs
public java.util.Collection<org.eclipse.emf.common.util.URI> getContainedURIs(java.lang.String containerHandle)
- Specified by:
getContainedURIsin interfaceIAllContainersState
-
containsURI
public boolean containsURI(java.lang.String containerHandle, org.eclipse.emf.common.util.URI candidateURI)- Specified by:
containsURIin interfaceIAllContainersState
-
getContainerHandle
public java.lang.String getContainerHandle(org.eclipse.emf.common.util.URI uri)
- Specified by:
getContainerHandlein interfaceIAllContainersState
-
getResourceSet
public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
-
getVisibleContainerHandles
public java.util.List<java.lang.String> getVisibleContainerHandles(java.lang.String handle)
- Specified by:
getVisibleContainerHandlesin interfaceIAllContainersState
-
isAdapterForType
public boolean isAdapterForType(java.lang.Object type)
- Specified by:
isAdapterForTypein interfaceorg.eclipse.emf.common.notify.Adapter- Overrides:
isAdapterForTypein classorg.eclipse.emf.common.notify.impl.AdapterImpl
-
isEmpty
public boolean isEmpty(java.lang.String containerHandle)
- Specified by:
isEmptyin interfaceIAllContainersState
-
-