Ignore:
Timestamp:
2016-06-30T03:08:25+02:00 (10 years ago)
Author:
donvip
Message:

remove calls to deprecated methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery_offset_db/src/iodb/OffsetDialog.java

    r32046 r32462  
    3838import org.openstreetmap.josm.gui.JosmUserIdentityManager;
    3939import org.openstreetmap.josm.gui.MapView;
     40import org.openstreetmap.josm.gui.NavigatableComponent.ZoomChangeListener;
    4041import org.openstreetmap.josm.gui.layer.ImageryLayer;
    4142import org.openstreetmap.josm.gui.layer.MapViewPaintable;
     
    5152 * @license WTFPL
    5253 */
    53 public class OffsetDialog extends JDialog implements ActionListener, MapView.ZoomChangeListener, MapViewPaintable {
     54public class OffsetDialog extends JDialog implements ActionListener, ZoomChangeListener, MapViewPaintable {
    5455    protected static final String PREF_CALIBRATION = "iodb.show.calibration";
    5556    protected static final String PREF_DEPRECATED = "iodb.show.deprecated";
     
    276277                JOptionPane.showMessageDialog(Main.parent,
    277278                        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."),
    280281                        ImageryOffsetTools.DIALOG_TITLE, JOptionPane.INFORMATION_MESSAGE);
    281282                Main.pref.put("iodb.offset.message", true);
     
    283284        } else if( selectedOffset instanceof CalibrationObject ) {
    284285            CalibrationLayer clayer = new CalibrationLayer((CalibrationObject)selectedOffset);
    285             Main.map.mapView.addLayer(clayer);
     286            Main.getLayerManager().addLayer(clayer);
    286287            clayer.panToCenter();
    287288            if( !Main.pref.getBoolean("iodb.calibration.message", false) ) {
    288289                JOptionPane.showMessageDialog(Main.parent,
    289290                        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."),
    291292                        ImageryOffsetTools.DIALOG_TITLE, JOptionPane.INFORMATION_MESSAGE);
    292293                Main.pref.put("iodb.calibration.message", true);
Note: See TracChangeset for help on using the changeset viewer.