Changeset 34116 in osm


Ignore:
Timestamp:
2018-03-25T17:20:53+02:00 (7 years ago)
Author:
donvip
Message:

remove non-working diff support

Location:
applications/editors/josm/plugins/opendata
Files:
1 deleted
3 edited

Legend:

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

    r33790 r34116  
    1212    <!-- ** include targets that all plugins have in common ** -->
    1313    <import file="../build-common.xml"/>
    14    
     14
    1515    <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
    1616        <include name="apache-commons.jar"/>
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/gui/OdDialog.java

    r33518 r34116  
    7676        @Override
    7777        public void actionPerformed(ActionEvent e) {
    78             if (MainApplication.getLayerManager().getEditLayer() instanceof OdLayer) {
    79                 dataLayer.makeDiff();
    80             }
     78            // TODO
    8179        }
    8280    }
     
    146144            if (dataLayer.osmLayer == null) {
    147145                downloadButton.setEnabled(true);
    148             } else if (dataLayer.diffLayer == null) {
    149                 diffButton.setEnabled(true);
    150146            }
    151147            toolsButton.setEnabled(dataLayer.handler != null && !dataLayer.handler.getTools().isEmpty());
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/layers/OdDataLayer.java

    r33518 r34116  
    3434public class OdDataLayer extends OsmDataLayer implements OdLayer, LayerChangeListener, ActiveLayerChangeListener {
    3535
    36     public OdDiffLayer diffLayer;
    3736    public OdOsmDataLayer osmLayer;
    3837
     
    7574    }
    7675
    77     public void addDiffLayer(OdDiffLayer layer) {
    78         removeDiffLayer();
    79         diffLayer = layer;
    80         MainApplication.getLayerManager().addLayer(diffLayer);
    81     }
    82 
    83     public void removeDiffLayer() {
    84         if (diffLayer != null) {
    85             MainApplication.getLayerManager().removeLayer(diffLayer);
    86             diffLayer = null;
    87         }
    88     }
    89 
    9076    public final void downloadOsmData() {
    9177        if (handler != null) {
     
    123109        if (e.getRemovedLayer() == this) {
    124110            removeOsmLayer();
    125             removeDiffLayer();
    126111        } else if (e.getRemovedLayer() == osmLayer) {
    127112            osmLayer = null;
    128         } else if (e.getRemovedLayer() == diffLayer) {
    129             diffLayer = null;
    130113        }
    131114    }
     
    180163        return this;
    181164    }
    182 
    183     public void makeDiff() {
    184         final OdDiffLayer layer = new OdDiffLayer(this, getName()+"/Diff");
    185         addDiffLayer(layer);
    186         MainApplication.getLayerManager().setActiveLayer(diffLayer);
    187     }
    188165}
Note: See TracChangeset for help on using the changeset viewer.