Changeset 32462 in osm for applications/editors/josm/plugins/imagery_offset_db/src/iodb/OffsetDialog.java
- Timestamp:
- 2016-06-30T03:08:25+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery_offset_db/src/iodb/OffsetDialog.java
r32046 r32462 38 38 import org.openstreetmap.josm.gui.JosmUserIdentityManager; 39 39 import org.openstreetmap.josm.gui.MapView; 40 import org.openstreetmap.josm.gui.NavigatableComponent.ZoomChangeListener; 40 41 import org.openstreetmap.josm.gui.layer.ImageryLayer; 41 42 import org.openstreetmap.josm.gui.layer.MapViewPaintable; … … 51 52 * @license WTFPL 52 53 */ 53 public class OffsetDialog extends JDialog implements ActionListener, MapView.ZoomChangeListener, MapViewPaintable {54 public class OffsetDialog extends JDialog implements ActionListener, ZoomChangeListener, MapViewPaintable { 54 55 protected static final String PREF_CALIBRATION = "iodb.show.calibration"; 55 56 protected static final String PREF_DEPRECATED = "iodb.show.deprecated"; … … 276 277 JOptionPane.showMessageDialog(Main.parent, 277 278 tr("The topmost imagery layer has been shifted to presumably match\n" 278 + "OSM data in the area. Please check that the offset is still valid\n" 279 + "by downloading GPS tracks and comparing them and OSM data to the imagery."), 279 + "OSM data in the area. Please check that the offset is still valid\n" 280 + "by downloading GPS tracks and comparing them and OSM data to the imagery."), 280 281 ImageryOffsetTools.DIALOG_TITLE, JOptionPane.INFORMATION_MESSAGE); 281 282 Main.pref.put("iodb.offset.message", true); … … 283 284 } else if( selectedOffset instanceof CalibrationObject ) { 284 285 CalibrationLayer clayer = new CalibrationLayer((CalibrationObject)selectedOffset); 285 Main. map.mapView.addLayer(clayer);286 Main.getLayerManager().addLayer(clayer); 286 287 clayer.panToCenter(); 287 288 if( !Main.pref.getBoolean("iodb.calibration.message", false) ) { 288 289 JOptionPane.showMessageDialog(Main.parent, 289 290 tr("A layer has been added with a calibration geometry. Hide data layers,\n" 290 + "find the corresponding feature on the imagery layer and move it accordingly."), 291 + "find the corresponding feature on the imagery layer and move it accordingly."), 291 292 ImageryOffsetTools.DIALOG_TITLE, JOptionPane.INFORMATION_MESSAGE); 292 293 Main.pref.put("iodb.calibration.message", true);
Note:
See TracChangeset
for help on using the changeset viewer.
