8182838485868788899091
UndoAction action = (UndoAction) actions.get(i); if (action.action == UndoAction.ADD_SHAPE) { //if(() ) SketchShape shape = (SketchShape) action.obj; shape.destroy(); } if (action.action == UndoAction.ADD_PLANE) { //if(action.obj.getClass() )