public class ElementChangedEvent extends EventObject
This class is not intended to be instantiated or subclassed by clients. Instances of this class are automatically created by the Java model.
IElementChangedListener
,
IJavaElementDelta
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
POST_CHANGE
Event type constant (bit mask) indicating an after-the-fact
report of creations, deletions, and modifications
to one or more Java element(s) expressed as a hierarchical
java element delta as returned by
getDelta() . |
static int |
POST_RECONCILE
Event type constant (bit mask) indicating an after-the-fact
report of creations, deletions, and modifications
to one or more Java element(s) expressed as a hierarchical
java element delta as returned by
getDelta . |
static int |
PRE_AUTO_BUILD
Deprecated.
- no longer used, such deltas are now notified during POST_CHANGE
|
source
Constructor and Description |
---|
ElementChangedEvent(IJavaElementDelta delta,
int type)
Creates an new element changed event (based on a
IJavaElementDelta ). |
Modifier and Type | Method and Description |
---|---|
IJavaElementDelta |
getDelta()
Returns the delta describing the change.
|
int |
getType()
Returns the type of event being reported.
|
getSource, toString
public static final int POST_CHANGE
getDelta()
.
Note: this notification occurs during the corresponding POST_CHANGE
resource change notification, and contains a full delta accounting for
any JavaModel operation and/or resource change.IJavaElementDelta
,
IResourceChangeEvent
,
getDelta()
,
Constant Field Valuespublic static final int PRE_AUTO_BUILD
getDelta
.
Note: this notification occurs during the corresponding PRE_AUTO_BUILD
resource change notification. The delta, which is notified here, only contains
information relative to the previous JavaModel operations (in other words,
it ignores the possible resources which have changed outside Java operations).
In particular, it is possible that the JavaModel be inconsistent with respect to
resources, which got modified outside JavaModel operations (it will only be
fully consistent once the POST_CHANGE notification has occurred).IJavaElementDelta
,
IResourceChangeEvent
,
getDelta()
,
Constant Field Valuespublic static final int POST_RECONCILE
getDelta
.
Note: this notification occurs as a result of a working copy reconcile
operation.IJavaElementDelta
,
IResourceChangeEvent
,
getDelta()
,
Constant Field Valuespublic ElementChangedEvent(IJavaElementDelta delta, int type)
IJavaElementDelta
).delta
- the Java element delta.type
- the type of delta (ADDED, REMOVED, CHANGED) this event containspublic IJavaElementDelta getDelta()
public int getType()
POST_CHANGE
,
PRE_AUTO_BUILD
,
POST_RECONCILE
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.