|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.roo.file.undo.DefaultUndoManager
@Service public class DefaultUndoManager
Default implementation of the UndoManager
interface.
Constructor Summary | |
---|---|
DefaultUndoManager()
|
Method Summary | |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context)
|
void |
add(UndoableOperation undoableOperation)
Registers an undoable operation in the Stack . |
void |
reset()
Resets the undo Stack , and guarantees to clear the Stack . |
boolean |
undo()
Replays the undo Stack , and guarantees to clear the Stack . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultUndoManager()
Method Detail |
---|
protected void activate(org.osgi.service.component.ComponentContext context)
public void add(UndoableOperation undoableOperation)
UndoManager
Stack
.
add
in interface UndoManager
undoableOperation
- to register in a Stack
(required)public void reset()
UndoManager
Stack
, and guarantees to clear the Stack
.
Executing this command guarantees the Stack
will be empty upon return, with every element reset.
reset
in interface UndoManager
public boolean undo()
UndoManager
Stack
, and guarantees to clear the Stack
.
The first operation that returns false to UndoableOperation.undo()
will cause the remainder
of the Stack
to stop undoing.
Executing this command guarantees the Stack
will be empty upon return, with every element either
undone or reset.
undo
in interface UndoManager
UndoableOperation
s in the Stack
were successfully undone
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |