public abstract class ResourceEventResolver
extends java.lang.Object
implements org.eclipse.core.resources.IResourceVisitor, org.eclipse.core.resources.IResourceDeltaVisitor
Modifier | Constructor and Description |
---|---|
protected |
ResourceEventResolver() |
Modifier and Type | Method and Description |
---|---|
protected void |
postResolve() |
protected void |
preResolve() |
void |
resolve(org.eclipse.core.resources.IResourceChangeEvent event)
Resolves supplied resource resource change event.
|
void |
resolve(org.eclipse.core.resources.IResourceDelta delta,
org.eclipse.core.resources.IResource resource)
Resolves supplied resource delta or resource.
|
protected abstract boolean |
resolveDelta(org.eclipse.core.resources.IResourceDelta delta) |
protected abstract boolean |
resolveEvent(org.eclipse.core.resources.IResourceChangeEvent event) |
protected abstract boolean |
resolveResource(org.eclipse.core.resources.IResource resource) |
boolean |
visit(org.eclipse.core.resources.IResource resource)
Visits supplied resource.
|
boolean |
visit(org.eclipse.core.resources.IResourceChangeEvent event)
Visits supplied resource change event.
|
boolean |
visit(org.eclipse.core.resources.IResourceDelta delta)
Visits supplied resource delta.
|
public final boolean visit(org.eclipse.core.resources.IResourceChangeEvent event) throws org.eclipse.core.runtime.CoreException
Invokes resolveEvent(event)
and returns the computed result.
true
if the resource change events's delta or resource should
be visited, false
if they should be skippedorg.eclipse.core.runtime.CoreException
- if the visit fails for some reasonpublic final boolean visit(org.eclipse.core.resources.IResourceDelta delta) throws org.eclipse.core.runtime.CoreException
Invokes resolveDelta(delta)
and returns the computed result.
visit
in interface org.eclipse.core.resources.IResourceDeltaVisitor
true
if the resource delta's children should
be visited, false
if they should be skippedorg.eclipse.core.runtime.CoreException
- if the visit fails for some reasonpublic final boolean visit(org.eclipse.core.resources.IResource resource) throws org.eclipse.core.runtime.CoreException
Invokes resolveResource(resource)
and returns the computed result.
visit
in interface org.eclipse.core.resources.IResourceVisitor
true
if the resource's members should
be visited, false
if they should be skippedorg.eclipse.core.runtime.CoreException
- if the probe fails for some reasonprotected abstract boolean resolveEvent(org.eclipse.core.resources.IResourceChangeEvent event) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
protected abstract boolean resolveDelta(org.eclipse.core.resources.IResourceDelta delta) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
protected abstract boolean resolveResource(org.eclipse.core.resources.IResource resource) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public final void resolve(@Nullable org.eclipse.core.resources.IResourceChangeEvent event)
Visits resource event or returns silently if event is null
.
This method always invokes preResolve()
before resolving but invokes
postResolve()
only after successful resolving (post hook is not invoked
in case of an exception).
RuntimeCoreException
- if the visit fails for some reasonpublic final void resolve(@Nullable org.eclipse.core.resources.IResourceDelta delta, @Nullable org.eclipse.core.resources.IResource resource)
Visits first non null
parameter or returns silently if both are null
.
This method always invokes preResolve()
before resolving but invokes
postResolve()
only after successful resolving (post hook is not invoked
in case of an exception).
RuntimeCoreException
- if the visit fails for some reasonprotected void preResolve()
protected void postResolve()