Changeset 2098 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2009-09-12T15:15:42+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/UndoRedoHandler.java
r2025 r2098 36 36 * Execute the command and add it to the intern command queue. 37 37 */ 38 public void add (final Command c) {38 public void addNoRedraw(final Command c) { 39 39 c.executeCommand(); 40 40 commands.add(c); 41 41 redoCommands.clear(); 42 } 43 44 public void afterAdd() { 42 45 if (Main.map != null && Main.map.mapView.getActiveLayer() instanceof OsmDataLayer) { 43 46 OsmDataLayer data = (OsmDataLayer)Main.map.mapView.getActiveLayer(); … … 48 51 // the command may have changed the selection so tell the listeners about the current situation 49 52 DataSet.fireSelectionChanged(Main.main.getCurrentDataSet().getSelected()); 53 } 54 55 /** 56 * Execute the command and add it to the intern command queue. 57 */ 58 public void add(final Command c) { 59 addNoRedraw(c); 60 afterAdd(); 50 61 } 51 62
Note:
See TracChangeset
for help on using the changeset viewer.