if (undoActions.size() == 0) return;
UndoAction action = undoActions.removeLast();
// Construct redo action
switch (action.type) {
case UndoAction.EDIT_APPEND_SET: {
redoActions.addLast(new UndoAction(action.type,new SchemeSet(currentSchemeSet),new ArrayList<Integer>(currentMoveIndexes),null,action.schemeIndex,action.prevMoveIndex,action.nextMoveIndex));
break;
}
case UndoAction.EDIT_SCHEMESET_PROPERTIES:
case UndoAction.EDIT_REMOVE_ALL_SCHEMES_MOVES: {
redoActions.addLast(new UndoAction(action.type,new SchemeSet(currentSchemeSet),new ArrayList<Integer>(currentMoveIndexes),null,action.schemeIndex,action.prevMoveIndex,action.nextMoveIndex));
break;
}
case UndoAction.EDIT_REMOVE_SCHEME: {
redoActions.addLast(new UndoAction(action.type,null,null,null,action.schemeIndex,action.prevMoveIndex,action.nextMoveIndex));
break;