Wiki
Clone wikiGCode Editor / gen / Operation
Documentation
public interface Operation
This interface represents a set of changes made to a Program
- Author: groomblecom
- See also: Program#addQueuedOperation(Operation)
public boolean perform(Program p, LinkedList<Command> c)
Performs some operation on a program without causing 100s of redraw and resimulate events. It is assumed that it starts with the program in a valid state and leaves it in a valid state.
- Parameters:
p
— the program to operate onc
— the modifiable command list to operate on- Returns: whether the operation was successful.
public boolean isUndoPoint()
Checks if this Operation is sufficiently important to cause a savepoint
- Returns: true if CTRL+Z should undo this operation by itself, or false if it is a minor operation which should be undone with other operations to prevent huge undo queues.
Updated