Package org.esa.snap.rcp.nodes
Class UndoableProductNodeEdit<T extends ProductNode>
- java.lang.Object
-
- javax.swing.undo.AbstractUndoableEdit
-
- org.esa.snap.rcp.nodes.UndoableProductNodeEdit<T>
-
- Type Parameters:
T
- The product node type.
- All Implemented Interfaces:
Serializable
,UndoableEdit
public class UndoableProductNodeEdit<T extends ProductNode> extends AbstractUndoableEdit
An undoable edit of aProductNode
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
-
-
Constructor Summary
Constructors Constructor Description UndoableProductNodeEdit(String name, T node, org.esa.snap.rcp.nodes.UndoableProductNodeEdit.Edit<T> undo, org.esa.snap.rcp.nodes.UndoableProductNodeEdit.Edit<T> redo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canRedo()
boolean
canUndo()
String
getPresentationName()
void
redo()
void
undo()
-
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, die, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
-
-
-
-
Method Detail
-
getPresentationName
public String getPresentationName()
- Specified by:
getPresentationName
in interfaceUndoableEdit
- Overrides:
getPresentationName
in classAbstractUndoableEdit
-
undo
public void undo() throws CannotUndoException
- Specified by:
undo
in interfaceUndoableEdit
- Overrides:
undo
in classAbstractUndoableEdit
- Throws:
CannotUndoException
-
redo
public void redo() throws CannotRedoException
- Specified by:
redo
in interfaceUndoableEdit
- Overrides:
redo
in classAbstractUndoableEdit
- Throws:
CannotRedoException
-
canUndo
public boolean canUndo()
- Specified by:
canUndo
in interfaceUndoableEdit
- Overrides:
canUndo
in classAbstractUndoableEdit
-
canRedo
public boolean canRedo()
- Specified by:
canRedo
in interfaceUndoableEdit
- Overrides:
canRedo
in classAbstractUndoableEdit
-
-