Changeset 29750 in osm for applications


Ignore:
Timestamp:
2013-07-07T00:30:33+02:00 (11 years ago)
Author:
donvip
Message:

[josm_measurement] see #josm6515 - update to JOSM 6056

Location:
applications/editors/josm/plugins/measurement
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/measurement/build.xml

    r29534 r29750  
    44    <property name="commit.message" value="recompile dure to core change"/>
    55    <!-- 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"/>
    77   
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementDialog.java

    r29625 r29750  
    3232import org.openstreetmap.josm.gui.NavigatableComponent;
    3333import org.openstreetmap.josm.gui.SideButton;
     34import org.openstreetmap.josm.gui.NavigatableComponent.SoMChangeListener;
    3435import org.openstreetmap.josm.gui.dialogs.ToggleDialog;
    3536import org.openstreetmap.josm.gui.help.HelpUtil;
     
    4445 * @author ramack
    4546 */
    46 public class MeasurementDialog extends ToggleDialog implements SelectionChangedListener, DataSetListener {
     47public class MeasurementDialog extends ToggleDialog implements SelectionChangedListener, DataSetListener, SoMChangeListener {
    4748    private static final long serialVersionUID = 4708541586297950021L;
    4849
     
    131132       
    132133        DataSet.addSelectionListener(this);
     134        NavigatableComponent.addSoMChangeListener(this);
    133135    }
    134136
     
    210212        }
    211213
    212         /* (non-Javadoc)
    213          * @see org.openstreetmap.josm.gui.dialogs.ToggleDialog#destroy()
    214          */
    215214        @Override
    216215        public void destroy() {
    217216                super.destroy();
     217                NavigatableComponent.removeSoMChangeListener(this);
    218218                DataSet.removeSelectionListener(this);
    219219                if (ds != null) {
     
    249249    @Override public void otherDatasetChange(AbstractDatasetChangedEvent event) {}
    250250    @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        }
    251257}
Note: See TracChangeset for help on using the changeset viewer.