Package org.apache.hop.core.gui
Interface IUndo
-
- All Known Implementing Classes:
AbstractMeta,PipelineMeta,WorkflowMeta
public interface IUndo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddUndo(Object[] from, Object[] to, int[] pos, Point[] prev, Point[] curr, int typeOfChange, boolean nextAlso)Add an undo operation to the undo listintgetMaxUndo()Get the maximum number of undo operations possibleChangeActionnextUndo()Get the next undo transaction on the list.ChangeActionpreviousUndo()Get the previous undo operation and change the undo pointervoidsetMaxUndo(int mu)Sets the maximum number of undo operations that are allowed.ChangeActionviewNextUndo()Get the next undo transaction on the list.ChangeActionviewPreviousUndo()View previous undo, don't change undo positionChangeActionviewThisUndo()View current undo, don't change undo position
-
-
-
Method Detail
-
addUndo
void addUndo(Object[] from, Object[] to, int[] pos, Point[] prev, Point[] curr, int typeOfChange, boolean nextAlso)
Add an undo operation to the undo list- Parameters:
from- array of objects representing the old stateto- array of objectes representing the new statepos- An array of object locationsprev- An array of points representing the old positionscurr- An array of points representing the new positionstype_of_change- The type of change that's being done to the pipeline.nextAlso- indicates that the next undo operation needs to follow this one.
-
getMaxUndo
int getMaxUndo()
Get the maximum number of undo operations possible- Returns:
- The maximum number of undo operations that are allowed.
-
setMaxUndo
void setMaxUndo(int mu)
Sets the maximum number of undo operations that are allowed.- Parameters:
mu- The maximum number of undo operations that are allowed.
-
previousUndo
ChangeAction previousUndo()
Get the previous undo operation and change the undo pointer- Returns:
- The undo transaction to be performed.
-
viewThisUndo
ChangeAction viewThisUndo()
View current undo, don't change undo position- Returns:
- The current undo transaction
-
viewPreviousUndo
ChangeAction viewPreviousUndo()
View previous undo, don't change undo position- Returns:
- The previous undo transaction
-
nextUndo
ChangeAction nextUndo()
Get the next undo transaction on the list. Change the undo pointer.- Returns:
- The next undo transaction (for redo)
-
viewNextUndo
ChangeAction viewNextUndo()
Get the next undo transaction on the list.- Returns:
- The next undo transaction (for redo)
-
-