Package org.esa.snap.rcp.nodes
Class UndoableProductNodeDeletion<T extends ProductNode>
- java.lang.Object
-
- javax.swing.undo.AbstractUndoableEdit
-
- org.esa.snap.rcp.nodes.UndoableProductNodeDeletion<T>
-
- Type Parameters:
T
- The product node type.
- All Implemented Interfaces:
Serializable
,UndoableEdit
public class UndoableProductNodeDeletion<T extends ProductNode> extends AbstractUndoableEdit
An undoable insertion of aProductNode
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
-
-
Constructor Summary
Constructors Constructor Description UndoableProductNodeDeletion(ProductNodeGroup<T> productNodeGroup, T productNode, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
die()
String
getPresentationName()
T
getProductNode()
void
redo()
void
undo()
-
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
-
-
-
-
Constructor Detail
-
UndoableProductNodeDeletion
public UndoableProductNodeDeletion(ProductNodeGroup<T> productNodeGroup, T productNode, int index)
-
-
Method Detail
-
getProductNode
public T getProductNode()
-
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
-
die
public void die()
- Specified by:
die
in interfaceUndoableEdit
- Overrides:
die
in classAbstractUndoableEdit
-
-