- Timestamp:
- 2018-08-11T23:50:31+02:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java
r14134 r14135 41 41 import org.openstreetmap.josm.data.osm.TagCollection; 42 42 import org.openstreetmap.josm.data.osm.Way; 43 import org.openstreetmap.josm.gui.MainApplication;44 43 import org.openstreetmap.josm.gui.Notification; 45 44 import org.openstreetmap.josm.gui.conflict.tags.CombinePrimitiveResolverDialog; … … 1602 1601 cmds.clear(); 1603 1602 if (Main.main != null && addUndoRedo) { 1604 UndoRedoHandler ur = MainApplication.undoRedo;1603 UndoRedoHandler ur = UndoRedoHandler.getInstance(); 1605 1604 int i = Math.max(ur.commands.size() - cmdsCount, 0); 1606 1605 for (; i < ur.commands.size(); i++) { -
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r14134 r14135 251 251 Layer layer = e.getRemovedLayer(); 252 252 if (layer instanceof OsmDataLayer) { 253 undoRedo.clean(((OsmDataLayer) layer).getDataSet());253 UndoRedoHandler.getInstance().clean(((OsmDataLayer) layer).getDataSet()); 254 254 } 255 255 } … … 415 415 new InitializationTask(tr("Building main menu"), this::initializeMainWindow), 416 416 new InitializationTask(tr("Updating user interface"), () -> { 417 undoRedo.addCommandQueueListener(redoUndoListener);417 UndoRedoHandler.getInstance().addCommandQueueListener(redoUndoListener); 418 418 // creating toolbar 419 419 GuiHelper.runInEDTAndWait(() -> contentPanePrivate.add(toolbar.control, BorderLayout.NORTH));
Note:
See TracChangeset
for help on using the changeset viewer.