org.eclipse.xtext.ui.containers
Class AbstractAllContainersState
java.lang.Object
org.eclipse.xtext.ui.containers.AbstractStorage2UriMapperClient
org.eclipse.xtext.ui.containers.AbstractAllContainersState
- All Implemented Interfaces:
- java.util.EventListener, org.eclipse.core.resources.IResourceChangeListener, IAllContainersState
- Direct Known Subclasses:
- AbstractJavaProjectsState, WorkspaceProjectsState
public abstract class AbstractAllContainersState
- extends AbstractStorage2UriMapperClient
- implements org.eclipse.core.resources.IResourceChangeListener, IAllContainersState
- Author:
- Sebastian Zarnekow - Initial contribution and API
Method Summary |
protected abstract java.util.Collection<org.eclipse.emf.common.util.URI> |
doInitContainedURIs(java.lang.String containerHandle)
|
protected abstract java.lang.String |
doInitHandle(org.eclipse.emf.common.util.URI uri)
|
protected abstract java.util.List<java.lang.String> |
doInitVisibleHandles(java.lang.String handle)
|
java.util.Collection<org.eclipse.emf.common.util.URI> |
getContainedURIs(java.lang.String containerHandle)
|
java.lang.String |
getContainerHandle(org.eclipse.emf.common.util.URI uri)
|
java.util.List<java.lang.String> |
getVisibleContainerHandles(java.lang.String handle)
|
protected org.eclipse.core.resources.IWorkspaceRoot |
getWorkspaceRoot()
|
protected java.util.Collection<org.eclipse.emf.common.util.URI> |
initContainedURIs(java.lang.String containerHandle,
java.util.Collection<org.eclipse.emf.common.util.URI> result)
|
protected java.lang.String |
initHandle(org.eclipse.emf.common.util.URI uri)
|
protected void |
initialize()
|
protected java.util.List<java.lang.String> |
initVisibleContainerHandles(java.lang.String handle,
java.util.List<java.lang.String> result)
|
boolean |
isEmpty(java.lang.String containerHandle)
|
protected void |
registerAsListener()
|
void |
resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
Notifies this listener that some resource changes
are happening, or have already happened. |
void |
unregisterAsListener()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAllContainersState
protected AbstractAllContainersState()
registerAsListener
protected void registerAsListener()
unregisterAsListener
public void unregisterAsListener()
initialize
protected void initialize()
getContainerHandle
public java.lang.String getContainerHandle(org.eclipse.emf.common.util.URI uri)
- Specified by:
getContainerHandle
in interface IAllContainersState
initHandle
protected java.lang.String initHandle(org.eclipse.emf.common.util.URI uri)
doInitHandle
protected abstract java.lang.String doInitHandle(org.eclipse.emf.common.util.URI uri)
getContainedURIs
public java.util.Collection<org.eclipse.emf.common.util.URI> getContainedURIs(java.lang.String containerHandle)
- Specified by:
getContainedURIs
in interface IAllContainersState
isEmpty
public boolean isEmpty(java.lang.String containerHandle)
- Specified by:
isEmpty
in interface IAllContainersState
initContainedURIs
protected java.util.Collection<org.eclipse.emf.common.util.URI> initContainedURIs(java.lang.String containerHandle,
java.util.Collection<org.eclipse.emf.common.util.URI> result)
doInitContainedURIs
protected abstract java.util.Collection<org.eclipse.emf.common.util.URI> doInitContainedURIs(java.lang.String containerHandle)
getVisibleContainerHandles
public java.util.List<java.lang.String> getVisibleContainerHandles(java.lang.String handle)
- Specified by:
getVisibleContainerHandles
in interface IAllContainersState
initVisibleContainerHandles
protected java.util.List<java.lang.String> initVisibleContainerHandles(java.lang.String handle,
java.util.List<java.lang.String> result)
doInitVisibleHandles
protected abstract java.util.List<java.lang.String> doInitVisibleHandles(java.lang.String handle)
resourceChanged
public void resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
- Description copied from interface:
org.eclipse.core.resources.IResourceChangeListener
- Notifies this listener that some resource changes
are happening, or have already happened.
The supplied event gives details. This event object (and the
resource delta within it) is valid only for the duration of
the invocation of this method.
Note: This method is called by the platform; it is not intended
to be called directly by clients.
Note that during resource change event notification, further changes
to resources may be disallowed.
- Specified by:
resourceChanged
in interface org.eclipse.core.resources.IResourceChangeListener
- Parameters:
event
- the resource change event- See Also:
IResourceDelta
getWorkspaceRoot
protected org.eclipse.core.resources.IWorkspaceRoot getWorkspaceRoot()