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