Class: CommandHistory

josm/command. CommandHistory

Accessor to the global command history.

Provides static methods to redo and undo commands.


new CommandHistory()

Accessor to the global command history

Source:

Methods


<static> clear( [layer])

Removes commands in the command history, either all commands, or only the commands applied to a specific layer.
Parameters:
Name Type Argument Description
layer Layer <optional>
the reference layer. Only commands applied to this layer are removed. Default if missing: all commands are removed.
Source:

<static> redo( [depth])

Redoes the last depth commands.
Parameters:
Name Type Argument Default Description
depth number <optional>
1 the number of commands to be redone.
Source:

<static> undo( [depth])

Undoes the last depth commands.
Parameters:
Name Type Argument Default Description
depth number <optional>
1 the number of commands to be undone
Source: