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
ConstructorDescriptionElementChangeEvent
(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.int
getType()
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:IElementChangeEvent
Returns 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
0x10000
and includes the upper 16 bits ofint
value. The lower 16 bits are reserved for predefined generic event types.- Specified by:
getType
in interfaceIElementChangeEvent
- Returns:
- the type of event being reported
- See Also:
-
getDeltas
Description copied from interface:IElementChangeEvent
Returns the top-level deltas describing the change. Each top-level delta describes a change in a separate element tree.- Specified by:
getDeltas
in interfaceIElementChangeEvent
- Returns:
- the top-level deltas describing the change (never
null
, never empty). Clients must not modify the returned array.
-