public class ElementChangedEvent
extends java.util.EventObject
IElementChangedListener
,
ICElementDelta
,
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 C element(s) expressed as a hierarchical
C 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 C element(s) expressed as a hierarchical
C element delta as returned by
getDelta . |
static int |
POST_SHIFT
Event type constant indicating the following:
Source text is changed somewhere in function body
No global data affected for any C element
but element offsets should be recalculated now.
|
static int |
PRE_AUTO_BUILD
Deprecated.
- no longer used, such deltas are now notified during POST_CHANGE
|
Constructor and Description |
---|
ElementChangedEvent(ICElementDelta delta,
int type)
Creates an new element changed event (based on a
ICElementDelta ). |
Modifier and Type | Method and Description |
---|---|
ICElementDelta |
getDelta()
Returns the delta describing the change.
|
int |
getType()
Returns the type of event being reported.
|
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 CModel operation and/or resource change.ICElementDelta
,
org.eclipse.core.resources.IResourceChangeEvent
,
getDelta()
,
Constant Field Values@Deprecated public 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 CModel operations (in other words,
it ignores the possible resources which have changed outside C operations).
In particular, it is possible that the CModel be inconsistent with respect to
resources, which got modified outside CModel operations (it will only be
fully consistent once the POST_CHANGE notification has occurred).ICElementDelta
,
org.eclipse.core.resources.IResourceChangeEvent
,
getDelta()
,
Constant Field Valuespublic static final int POST_RECONCILE
getDelta
.
Note: this notification occurs as a result of a working copy reconcile
operation.ICElementDelta
,
org.eclipse.core.resources.IResourceChangeEvent
,
getDelta()
,
Constant Field Valuespublic static final int POST_SHIFT
CShiftData
,
Constant Field Valuespublic ElementChangedEvent(ICElementDelta delta, int type)
ICElementDelta
).delta
- the C element delta.public ICElementDelta getDelta()
public int getType()
POST_CHANGE
,
PRE_AUTO_BUILD
,
POST_RECONCILE
Copyright (c) IBM Corp. and others 2004, 2014. All Rights Reserved.