Class ElementChangeEvent
java.lang.Object
org.eclipse.handly.model.impl.support.ElementChangeEvent
- All Implemented Interfaces:
IElementChangeEvent
Default implementation of
IElementChangeEvent.-
Field Summary
Fields inherited from interface org.eclipse.handly.model.IElementChangeEvent
POST_CHANGE, POST_RECONCILE -
Constructor Summary
ConstructorsConstructorDescriptionElementChangeEvent(int type, IElementDelta... deltas) Constructs an element change event with the given type and the given top-level deltas. -
Method Summary
Modifier and TypeMethodDescriptionReturns the top-level deltas describing the change.intgetType()Returns the type of event being reported.
-
Constructor Details
-
ElementChangeEvent
Constructs an element change event with the given type and the given top-level deltas.- Parameters:
type- the type of event being reporteddeltas- the top-level deltas describing the change (at least one delta is required)- See Also:
-
-
Method Details
-
getType
public int getType()Description copied from interface:IElementChangeEventReturns the type of event being reported.Some event types make sense for most models and are predefined in this interface, while others are model-specific and are defined by the model implementor. The range for model-specific types starts from
0x10000and includes the upper 16 bits ofintvalue. The lower 16 bits are reserved for predefined generic event types.- Specified by:
getTypein interfaceIElementChangeEvent- Returns:
- the type of event being reported
- See Also:
-
getDeltas
Description copied from interface:IElementChangeEventReturns the top-level deltas describing the change. Each top-level delta describes a change in a separate element tree.- Specified by:
getDeltasin interfaceIElementChangeEvent- Returns:
- the top-level deltas describing the change (never
null, never empty). Clients must not modify the returned array.
-