Ignore:
Timestamp:
2013-03-24T20:08:00+01:00 (13 years ago)
Author:
zverik
Message:

iodb: small refactoring, also offset watcher

File:
1 edited

Legend:

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

    r29388 r29394  
    1717import org.openstreetmap.josm.gui.JosmUserIdentityManager;
    1818import org.openstreetmap.josm.gui.MapView;
    19 import org.openstreetmap.josm.gui.NavigatableComponent;
    2019import org.openstreetmap.josm.gui.layer.ImageryLayer;
    2120import org.openstreetmap.josm.gui.layer.MapViewPaintable;
     
    2928 * @license WTFPL
    3029 */
    31 public class OffsetDialog extends JDialog implements ActionListener, NavigatableComponent.ZoomChangeListener, MapViewPaintable {
     30public class OffsetDialog extends JDialog implements ActionListener, MapView.ZoomChangeListener, MapViewPaintable {
    3231    protected static final String PREF_CALIBRATION = "iodb.show.calibration";
    3332    protected static final String PREF_DEPRECATED = "iodb.show.deprecated";
     
    5554        setResizable(false);
    5655        this.offsets = offsets;
    57         NavigatableComponent.addZoomChangeListener(this);
    5856
    5957        // make this dialog close on "escape"
     
    194192        selectedOffset = null;
    195193        prepareDialog();
     194        MapView.addZoomChangeListener(this);
    196195        if( !MODAL ) {
    197196            Main.map.mapView.addTemporaryLayer(this);
     
    218217                || Main.pref.getBoolean("iodb.close.on.select", true);
    219218        if( closeDialog ) {
    220             NavigatableComponent.removeZoomChangeListener(this);
     219            MapView.removeZoomChangeListener(this);
    221220            setVisible(false);
    222221        }
Note: See TracChangeset for help on using the changeset viewer.