Changeset 7083 in josm for trunk/src/org/openstreetmap/josm/Main.java
- Timestamp:
- 2014-05-09T06:03:50+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r7026 r7083 27 27 import java.util.List; 28 28 import java.util.Map; 29 import java.util.Objects; 29 30 import java.util.StringTokenizer; 30 31 import java.util.concurrent.Callable; … … 181 182 * The commands undo/redo handler. 182 183 */ 183 public UndoRedoHandler undoRedo = new UndoRedoHandler();184 public final UndoRedoHandler undoRedo = new UndoRedoHandler(); 184 185 185 186 /** … … 580 581 toolbar.control.updateUI(); 581 582 contentPanePrivate.updateUI(); 582 583 583 } 584 584 … … 1123 1123 final String EXIT = tr("Exit JOSM"); 1124 1124 final String CONTINUE = tr("Continue, try anyway"); 1125 int ret = JOptionPane.showOptionDialog(null, panel, tr("Error"), JOptionPane.YES_NO_OPTION, 1125 int ret = JOptionPane.showOptionDialog(null, panel, tr("Error"), JOptionPane.YES_NO_OPTION, 1126 1126 JOptionPane.ERROR_MESSAGE, null, new String[] {EXIT, CONTINUE}, EXIT); 1127 1127 if (ret == 0) { … … 1178 1178 private static void fireProjectionChanged(Projection oldValue, Projection newValue, Bounds oldBounds) { 1179 1179 if (newValue == null ^ oldValue == null 1180 || (newValue != null && oldValue != null && ! Utils.equal(newValue.toCode(), oldValue.toCode()))) {1180 || (newValue != null && oldValue != null && !Objects.equals(newValue.toCode(), oldValue.toCode()))) { 1181 1181 1182 1182 synchronized(Main.class) {
Note:
See TracChangeset
for help on using the changeset viewer.