org.eclipse.jpt.utility.model.event
Class StateChangeEvent
java.lang.Object
java.util.EventObject
org.eclipse.jpt.utility.model.event.ChangeEvent
org.eclipse.jpt.utility.model.event.StateChangeEvent
- All Implemented Interfaces:
- java.io.Serializable
public class StateChangeEvent
- extends ChangeEvent
A generic "state change" event gets delivered whenever a model changes to
such extent that it cannot be delineated all aspects of it that have changed.
A StateChangeEvent is sent as an argument to the StateChangeListener.
Provisional API: This class is part of an interim API that is still
under development and expected to change significantly before reaching
stability. It is 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.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StateChangeEvent
public StateChangeEvent(Model source)
- Construct a new state change event.
- Parameters:
source
- The object on which the event initially occurred.
getAspectName
public java.lang.String getAspectName()
- Description copied from class:
ChangeEvent
- Return the name of the aspect of the source that changed.
May be null if inappropriate.
- Specified by:
getAspectName
in class ChangeEvent
cloneWithSource
public StateChangeEvent cloneWithSource(Model newSource)
- Description copied from class:
ChangeEvent
- Return a copy of the event with the specified source
replacing the current source.
- Specified by:
cloneWithSource
in class ChangeEvent