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 booleancanRedo()booleancanUndo()StringgetPresentationName()voidredo()voidundo()-
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, die, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
-
-
-
-
Method Detail
-
getPresentationName
public String getPresentationName()
- Specified by:
getPresentationNamein interfaceUndoableEdit- Overrides:
getPresentationNamein classAbstractUndoableEdit
-
undo
public void undo() throws CannotUndoException- Specified by:
undoin interfaceUndoableEdit- Overrides:
undoin classAbstractUndoableEdit- Throws:
CannotUndoException
-
redo
public void redo() throws CannotRedoException- Specified by:
redoin interfaceUndoableEdit- Overrides:
redoin classAbstractUndoableEdit- Throws:
CannotRedoException
-
canUndo
public boolean canUndo()
- Specified by:
canUndoin interfaceUndoableEdit- Overrides:
canUndoin classAbstractUndoableEdit
-
canRedo
public boolean canRedo()
- Specified by:
canRedoin interfaceUndoableEdit- Overrides:
canRedoin classAbstractUndoableEdit
-
-