org.eclipse.jpt.utility.model.event
Class ChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.eclipse.jpt.utility.model.event.ChangeEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CollectionChangeEvent, ListChangeEvent, PropertyChangeEvent, StateChangeEvent, TreeChangeEvent

public abstract class ChangeEvent
extends java.util.EventObject

Abstract class for all the change events that can be fired by models. 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

Method Summary
abstract  ChangeEvent cloneWithSource(Model newSource)
          Return a copy of the event with the specified source replacing the current source.
abstract  java.lang.String getAspectName()
          Return the name of the aspect of the source that changed.
 Model getSource()
          Covariant override.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getSource

public Model getSource()
Covariant override.

Overrides:
getSource in class java.util.EventObject

getAspectName

public abstract java.lang.String getAspectName()
Return the name of the aspect of the source that changed. May be null if inappropriate.


cloneWithSource

public abstract ChangeEvent cloneWithSource(Model newSource)
Return a copy of the event with the specified source replacing the current source.


toString

public java.lang.String toString()
Overrides:
toString in class java.util.EventObject