Changeset 31648 in osm for applications/editors/josm/plugins/measurement/src/org
- Timestamp:
- 2015-10-19T13:45:35+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementDialog.java
r31285 r31648 18 18 import org.openstreetmap.josm.Main; 19 19 import org.openstreetmap.josm.data.SelectionChangedListener; 20 import org.openstreetmap.josm.data.SystemOfMeasurement; 21 import org.openstreetmap.josm.data.SystemOfMeasurement.SoMChangeListener; 20 22 import org.openstreetmap.josm.data.osm.DataSet; 21 23 import org.openstreetmap.josm.data.osm.Node; … … 31 33 import org.openstreetmap.josm.data.osm.event.TagsChangedEvent; 32 34 import org.openstreetmap.josm.data.osm.event.WayNodesChangedEvent; 33 import org.openstreetmap.josm.gui.NavigatableComponent;34 import org.openstreetmap.josm.gui.NavigatableComponent.SoMChangeListener;35 35 import org.openstreetmap.josm.gui.SideButton; 36 36 import org.openstreetmap.josm.gui.dialogs.ToggleDialog; … … 143 143 144 144 DataSet.addSelectionListener(this); 145 NavigatableComponent.addSoMChangeListener(this);145 SystemOfMeasurement.addSoMChangeListener(this); 146 146 } 147 147 148 148 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); 150 150 } 151 151 152 152 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); 154 154 } 155 155 156 156 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); 158 158 } 159 159 … … 257 257 public void destroy() { 258 258 super.destroy(); 259 NavigatableComponent.removeSoMChangeListener(this);259 SystemOfMeasurement.removeSoMChangeListener(this); 260 260 DataSet.removeSelectionListener(this); 261 261 if (ds != null) {
Note:
See TracChangeset
for help on using the changeset viewer.