Changeset 14134 in josm for trunk/src/org/openstreetmap/josm/data/UndoRedoHandler.java
- Timestamp:
- 2018-08-11T23:33:58+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/UndoRedoHandler.java
r13764 r14134 18 18 * If you want to change a data set, you can use {@link #add(Command)} to execute a command on it and make that command undoable. 19 19 */ 20 public class UndoRedoHandler {20 public final class UndoRedoHandler { 21 21 22 22 /** … … 34 34 private final LinkedList<CommandQueuePreciseListener> preciseListenerCommands = new LinkedList<>(); 35 35 36 private static class InstanceHolder { 37 static final UndoRedoHandler INSTANCE = new UndoRedoHandler(); 38 } 39 40 /** 41 * Returns the unique instance. 42 * @return the unique instance 43 * @since 14134 44 */ 45 public static UndoRedoHandler getInstance() { 46 return InstanceHolder.INSTANCE; 47 } 48 36 49 /** 37 50 * Constructs a new {@code UndoRedoHandler}. 38 51 */ 39 p ublicUndoRedoHandler() {40 // Do nothing52 private UndoRedoHandler() { 53 // Hide constructor 41 54 } 42 55
Note:
See TracChangeset
for help on using the changeset viewer.