Changeset 29750 in osm for applications
- Timestamp:
- 2013-07-07T00:30:33+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/measurement
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/measurement/build.xml
r29534 r29750 4 4 <property name="commit.message" value="recompile dure to core change"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value=" 5560"/>6 <property name="plugin.main.version" value="6056"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementDialog.java
r29625 r29750 32 32 import org.openstreetmap.josm.gui.NavigatableComponent; 33 33 import org.openstreetmap.josm.gui.SideButton; 34 import org.openstreetmap.josm.gui.NavigatableComponent.SoMChangeListener; 34 35 import org.openstreetmap.josm.gui.dialogs.ToggleDialog; 35 36 import org.openstreetmap.josm.gui.help.HelpUtil; … … 44 45 * @author ramack 45 46 */ 46 public class MeasurementDialog extends ToggleDialog implements SelectionChangedListener, DataSetListener {47 public class MeasurementDialog extends ToggleDialog implements SelectionChangedListener, DataSetListener, SoMChangeListener { 47 48 private static final long serialVersionUID = 4708541586297950021L; 48 49 … … 131 132 132 133 DataSet.addSelectionListener(this); 134 NavigatableComponent.addSoMChangeListener(this); 133 135 } 134 136 … … 210 212 } 211 213 212 /* (non-Javadoc)213 * @see org.openstreetmap.josm.gui.dialogs.ToggleDialog#destroy()214 */215 214 @Override 216 215 public void destroy() { 217 216 super.destroy(); 217 NavigatableComponent.removeSoMChangeListener(this); 218 218 DataSet.removeSelectionListener(this); 219 219 if (ds != null) { … … 249 249 @Override public void otherDatasetChange(AbstractDatasetChangedEvent event) {} 250 250 @Override public void dataChanged(DataChangedEvent event) {} 251 252 @Override 253 public void systemOfMeasurementChanged(String oldSoM, String newSoM) { 254 // Refresh selection to take into account new system of measurement 255 selectionChanged(Main.main.getCurrentDataSet().getSelected()); 256 } 251 257 }
Note:
See TracChangeset
for help on using the changeset viewer.