public class ElementChangedEvent
extends java.util.EventObject
This class is not intended to be instantiated or subclassed by clients. Instances of this class are automatically created by the JavaScript model.
IElementChangedListener
,
Provisional API: This class/interface is part of an interim API that is still under development and expected to
change significantly before reaching stability. It is being made available at this early stage to solicit feedback
from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
(repeatedly) as the API evolves.
,
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 JavaScript 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 JavaScript element(s) expressed as a hierarchical
java element delta as returned by
getDelta . |
Constructor and Description |
---|
ElementChangedEvent(IJavaScriptElementDelta delta,
int type)
Creates an new element changed event (based on a
IJavaScriptElementDelta ). |
Modifier and Type | Method and Description |
---|---|
IJavaScriptElementDelta |
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 JavaScriptModel operation and/or resource change.IJavaScriptElementDelta
,
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.IJavaScriptElementDelta
,
org.eclipse.core.resources.IResourceChangeEvent
,
getDelta()
,
Constant Field Valuespublic ElementChangedEvent(IJavaScriptElementDelta delta, int type)
IJavaScriptElementDelta
).delta
- the JavaScript element delta.type
- the type of delta (ADDED, REMOVED, CHANGED) this event containspublic IJavaScriptElementDelta getDelta()
public int getType()
POST_CHANGE
,
POST_RECONCILE
Copyright (c) IBM Corp. and others 2000, 2010. All Rights Reserved.