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