Changeset 33774 in osm for applications/editors/josm/plugins/imagery_offset_db/src/iodb/OffsetDialog.java
- Timestamp:
- 2017-11-05T19:09:17+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery_offset_db/src/iodb/OffsetDialog.java
r33547 r33774 37 37 import org.openstreetmap.josm.Main; 38 38 import org.openstreetmap.josm.data.Bounds; 39 import org.openstreetmap.josm. gui.JosmUserIdentityManager;39 import org.openstreetmap.josm.data.UserIdentityManager; 40 40 import org.openstreetmap.josm.gui.MainApplication; 41 41 import org.openstreetmap.josm.gui.MapView; … … 57 57 protected static final String PREF_CALIBRATION = "iodb.show.calibration"; 58 58 protected static final String PREF_DEPRECATED = "iodb.show.deprecated"; 59 private static final int MAX_OFFSETS = Main.pref.getInt eger("iodb.max.offsets", 4);59 private static final int MAX_OFFSETS = Main.pref.getInt("iodb.max.offsets", 4); 60 60 61 61 /** … … 97 97 @Override 98 98 public void actionPerformed(ActionEvent e) { 99 Main.pref.put(PREF_CALIBRATION, calibrationBox.isSelected()); 99 Main.pref.putBoolean(PREF_CALIBRATION, calibrationBox.isSelected()); 100 100 updateButtonPanel(); 101 101 } … … 106 106 @Override 107 107 public void actionPerformed(ActionEvent e) { 108 Main.pref.put(PREF_DEPRECATED, deprecatedBox.isSelected()); 108 Main.pref.putBoolean(PREF_DEPRECATED, deprecatedBox.isSelected()); 109 109 updateButtonPanel(); 110 110 } … … 271 271 public void applyOffset() { 272 272 if (selectedOffset instanceof ImageryOffset) { 273 AbstractTileSourceLayer layer = ImageryOffsetTools.getTopImageryLayer(); 273 AbstractTileSourceLayer<?> layer = ImageryOffsetTools.getTopImageryLayer(); 274 274 ImageryOffsetTools.applyLayerOffset(layer, (ImageryOffset) selectedOffset); 275 275 ImageryOffsetWatcher.getInstance().markGood(); … … 281 281 + "by downloading GPS tracks and comparing them and OSM data to the imagery."), 282 282 ImageryOffsetTools.DIALOG_TITLE, JOptionPane.INFORMATION_MESSAGE); 283 Main.pref.put("iodb.offset.message", true); 283 Main.pref.putBoolean("iodb.offset.message", true); 284 284 } 285 285 } else if (selectedOffset instanceof CalibrationObject) { … … 292 292 + "find the corresponding feature on the imagery layer and move it accordingly."), 293 293 ImageryOffsetTools.DIALOG_TITLE, JOptionPane.INFORMATION_MESSAGE); 294 Main.pref.put("iodb.calibration.message", true); 294 Main.pref.putBoolean("iodb.calibration.message", true); 295 295 } 296 296 } … … 315 315 @Override 316 316 public void queryPassed() { 317 offset.setDeprecated(new Date(), JosmUserIdentityManager.getInstance().getUserName(), "");317 offset.setDeprecated(new Date(), UserIdentityManager.getInstance().getUserName(), ""); 318 318 updateButtonPanel(); 319 319 }
Note:
See TracChangeset
for help on using the changeset viewer.
