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 class
CommandStackEvent.Operation
An 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.Operation
getOperation()
Returns the type of this event.CommandStack
getSource()
String
toString()
-
-
-
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:
getSource
in classEventObject
-
getOperation
public CommandStackEvent.Operation getOperation()
Returns the type of this event.- Returns:
- the type of this event.
-
toString
public String toString()
- Overrides:
toString
in classEventObject
-
-