Package org.eclipse.emf.compare.command
Class CommandStackEvent
java.lang.Object
java.util.EventObject
org.eclipse.emf.compare.command.CommandStackEvent
- All Implemented Interfaces:
java.io.Serializable
public class CommandStackEvent
extends java.util.EventObject
An event that can be passed to
CommandStackListener.commandStackChanged(EventObject).- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommandStackEvent.OperationAn event type. -
Field Summary
-
Constructor Summary
Constructors Constructor Description CommandStackEvent(CommandStack commandStack, CommandStackEvent.Operation type)Constructor. -
Method Summary
Modifier and Type Method Description CommandStackEvent.OperationgetOperation()Returns the type of this event.CommandStackgetSource()java.lang.StringtoString()
-
Constructor Details
-
CommandStackEvent
Constructor.- Parameters:
commandStack- the command stack of the event.type- the type of event.
-
-
Method Details
-
getSource
- Overrides:
getSourcein classjava.util.EventObject
-
getOperation
Returns the type of this event.- Returns:
- the type of this event.
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.util.EventObject
-