|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.eclipse.core.internal.events.ResourceChangeEvent
public class ResourceChangeEvent
Field Summary |
---|
Fields inherited from interface org.eclipse.core.resources.IResourceChangeEvent |
---|
POST_AUTO_BUILD, POST_BUILD, POST_CHANGE, PRE_AUTO_BUILD, PRE_BUILD, PRE_CLOSE, PRE_DELETE, PRE_REFRESH |
Constructor Summary | |
---|---|
ResourceChangeEvent(java.lang.Object source,
int type,
int buildKind,
IResourceDelta delta)
|
Method Summary | |
---|---|
IMarkerDelta[] |
findMarkerDeltas(java.lang.String findType,
boolean includeSubtypes)
Returns all marker deltas of the specified type that are associated with resource deltas for this event. |
int |
getBuildKind()
Returns the kind of build that caused this event, or 0 if not applicable to this type of event. |
IResourceDelta |
getDelta()
Returns a resource delta, rooted at the workspace, describing the set of changes that happened to resources in the workspace. |
IResource |
getResource()
Returns the resource in question or null
if not applicable to this type of event. |
int |
getType()
Returns the type of event being reported. |
void |
setDelta(IResourceDelta value)
|
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.core.resources.IResourceChangeEvent |
---|
getSource |
Constructor Detail |
---|
public ResourceChangeEvent(java.lang.Object source, int type, int buildKind, IResourceDelta delta)
Method Detail |
---|
public IMarkerDelta[] findMarkerDeltas(java.lang.String findType, boolean includeSubtypes)
IResourceChangeEvent
includeSubtypes
is false
, only marker deltas whose type exactly matches
the given type are returned. Returns an empty array if there
are no matching marker deltas.
Calling this method is equivalent to walking the entire resource delta for this event, and collecting all marker deltas of a given type. The speed of this method will be proportional to the number of changed markers, regardless of the size of the resource delta tree.
findMarkerDeltas
in interface IResourceChangeEvent
findType
- the type of marker to consider, or null
to indicate all typesincludeSubtypes
- whether or not to consider sub-types of the given type
IResourceChangeEvent.findMarkerDeltas(String, boolean)
public int getBuildKind()
IResourceChangeEvent
0
if not applicable to this type of event.
If the event is a PRE_BUILD
or POST_BUILD
then this will be the kind of build that occurred to cause the event.
getBuildKind
in interface IResourceChangeEvent
0
if not applicableIResourceChangeEvent.getBuildKind()
public IResourceDelta getDelta()
IResourceChangeEvent
null
if not applicable to this type of event.
getDelta
in interface IResourceChangeEvent
null
if not
applicableIResourceChangeEvent.getDelta()
public IResource getResource()
IResourceChangeEvent
null
if not applicable to this type of event.
If the event is of type PRE_CLOSE
,
PRE_DELETE
, or PRE_REFRESH
, then the resource
will be the affected project. Otherwise the resource will be null
.
getResource
in interface IResourceChangeEvent
null
if not applicableIResourceChangeEvent.getResource()
public int getType()
IResourceChangeEvent
getType
in interface IResourceChangeEvent
IResourceChangeEvent.getType()
public void setDelta(IResourceDelta value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |