Ignore:
Timestamp:
2015-10-19T13:45:35+02:00 (9 years ago)
Author:
donvip
Message:

[josm_plugins] remove call to deprecated code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementDialog.java

    r31285 r31648  
    1818import org.openstreetmap.josm.Main;
    1919import org.openstreetmap.josm.data.SelectionChangedListener;
     20import org.openstreetmap.josm.data.SystemOfMeasurement;
     21import org.openstreetmap.josm.data.SystemOfMeasurement.SoMChangeListener;
    2022import org.openstreetmap.josm.data.osm.DataSet;
    2123import org.openstreetmap.josm.data.osm.Node;
     
    3133import org.openstreetmap.josm.data.osm.event.TagsChangedEvent;
    3234import org.openstreetmap.josm.data.osm.event.WayNodesChangedEvent;
    33 import org.openstreetmap.josm.gui.NavigatableComponent;
    34 import org.openstreetmap.josm.gui.NavigatableComponent.SoMChangeListener;
    3535import org.openstreetmap.josm.gui.SideButton;
    3636import org.openstreetmap.josm.gui.dialogs.ToggleDialog;
     
    143143
    144144        DataSet.addSelectionListener(this);
    145         NavigatableComponent.addSoMChangeListener(this);
     145        SystemOfMeasurement.addSoMChangeListener(this);
    146146    }
    147147
    148148    protected String getDistText(double v) {
    149         return NavigatableComponent.getSystemOfMeasurement().getDistText(v, new DecimalFormat("#0.000"), 1e-3);
     149        return SystemOfMeasurement.getSystemOfMeasurement().getDistText(v, new DecimalFormat("#0.000"), 1e-3);
    150150    }
    151151
    152152    protected String getAreaText(double v) {
    153         return NavigatableComponent.getSystemOfMeasurement().getAreaText(v, new DecimalFormat("#0.000"), 1e-3);
     153        return SystemOfMeasurement.getSystemOfMeasurement().getAreaText(v, new DecimalFormat("#0.000"), 1e-3);
    154154    }
    155155
    156156    protected String getRadiusText(double v) {
    157         return NavigatableComponent.getSystemOfMeasurement().getDistText(v, new DecimalFormat("#0.000"), 1e-3);
     157        return SystemOfMeasurement.getSystemOfMeasurement().getDistText(v, new DecimalFormat("#0.000"), 1e-3);
    158158    }
    159159
     
    257257    public void destroy() {
    258258        super.destroy();
    259         NavigatableComponent.removeSoMChangeListener(this);
     259        SystemOfMeasurement.removeSoMChangeListener(this);
    260260        DataSet.removeSelectionListener(this);
    261261        if (ds != null) {
Note: See TracChangeset for help on using the changeset viewer.