public static class CompareCommandStack.CompareSideCommandStack extends Object
ICompareCopyCommand
on each side.Constructor and Description |
---|
CompareCommandStack.CompareSideCommandStack()
Creates a new empty instance.
|
Modifier and Type | Method and Description |
---|---|
void |
executed(ICompareCopyCommand command)
Record the execution of the given command.
|
void |
executedWithException(ICompareCopyCommand command)
Will be called if the execute method of the command did not end normally.
|
void |
flushed()
Disposes all the commands in the stack.
|
Command |
getMostRecentCommand()
Returns the command most recently executed, undone, or redone.
|
Command |
getRedoCommand()
Returns the command that will be redone if
CompareCommandStack.redo() is called. |
Command |
getUndoCommand()
Returns the command that will be undone if
CompareCommandStack.undo() is called. |
boolean |
isSaveNeeded()
Returns whether the model has changes since
saveIsDone() was call the last. |
void |
redone()
Record that the top of the command list has been redone.
|
void |
redoneWithException()
Record that the redo method has raised exceptions.
|
void |
saveIsDone()
Called after a save has been successfully performed.
|
void |
undone()
Record that the top of the command list has been undone.
|
void |
undoneWithException()
Record that the undo method has raised exceptions.
|
public CompareCommandStack.CompareSideCommandStack()
public void redoneWithException()
public void undoneWithException()
public void executed(ICompareCopyCommand command)
command
- the command to record.public void executedWithException(ICompareCopyCommand command)
command
- the command that raised exceptions.public void undone()
public void redone()
public void flushed()
public void saveIsDone()
public boolean isSaveNeeded()
saveIsDone()
was call the last.saveIsDone
was call the last.public Command getUndoCommand()
CompareCommandStack.undo()
is called.CompareCommandStack.undo()
is called.public Command getRedoCommand()
CompareCommandStack.redo()
is called.CompareCommandStack.redo()
is called.public Command getMostRecentCommand()
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.