Package org.apache.hop.core.undo
Class ChangeAction
- java.lang.Object
-
- org.apache.hop.core.undo.ChangeAction
-
public class ChangeAction extends Object
This class store undo and redo information...Possible changes to a pipeline:
transform
hop
note
connection
Build an Undo/Redo class containing:
Type of change
Description of action
Link to previous infomation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChangeAction.ActionType
-
Constructor Summary
Constructors Constructor Description ChangeAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]getCurrent()int[]getCurrentIndex()Point[]getCurrentLocation()booleangetNextAlso()Get the status of the nextAlso flag.Object[]getPrevious()int[]getPreviousIndex()Point[]getPreviousLocation()ChangeAction.ActionTypegetType()voidsetChanged(Object[] prev, Object[] curr, int[] idx)voidsetDelete(Object[] prev, int[] idx)voidsetItemMove(int[] prev, int[] curr)voidsetNew(Object[] prev, int[] position)voidsetNextAlso(boolean nextAlso)Indicate that the next operations needs to be undone too.voidsetPosition(Object[] obj, int[] idx, Point[] prev, Point[] curr)StringtoString()
-
-
-
Method Detail
-
setDelete
public void setDelete(Object[] prev, int[] idx)
-
setNew
public void setNew(Object[] prev, int[] position)
-
setItemMove
public void setItemMove(int[] prev, int[] curr)
-
getType
public ChangeAction.ActionType getType()
-
getPrevious
public Object[] getPrevious()
-
getCurrent
public Object[] getCurrent()
-
getPreviousLocation
public Point[] getPreviousLocation()
-
getCurrentLocation
public Point[] getCurrentLocation()
-
getPreviousIndex
public int[] getPreviousIndex()
-
getCurrentIndex
public int[] getCurrentIndex()
-
setNextAlso
public void setNextAlso(boolean nextAlso)
Indicate that the next operations needs to be undone too.- Parameters:
nextAlso- The nextAlso to set.
-
getNextAlso
public boolean getNextAlso()
Get the status of the nextAlso flag.- Returns:
- true if the next operation needs to be done too.
-
-