Changeset 32525 in osm for applications/editors/josm/plugins/opendata/src
- Timestamp:
- 2016-07-02T02:50:50+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/gui/OdDialog.java
r32289 r32525 49 49 @Override 50 50 public void actionPerformed(ActionEvent e) { 51 if (Main. main.getEditLayer() instanceof OdLayer) {51 if (Main.getLayerManager().getEditLayer() instanceof OdLayer) { 52 52 dataLayer.downloadOsmData(); 53 53 diffButton.setEnabled(dataLayer.osmLayer != null); … … 72 72 @Override 73 73 public void actionPerformed(ActionEvent e) { 74 if (Main. main.getEditLayer() instanceof OdLayer) {74 if (Main.getLayerManager().getEditLayer() instanceof OdLayer) { 75 75 dataLayer.makeDiff(); 76 76 } … … 103 103 @Override 104 104 public void mousePressed(MouseEvent e) { 105 if (Main. main.getEditLayer() instanceof OdLayer) {105 if (Main.getLayerManager().getEditLayer() instanceof OdLayer) { 106 106 JPopupMenu popup = new JPopupMenu(); 107 107 for (JosmAction tool : dataLayer.handler.getTools()) { -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/layers/OdDataLayer.java
r32289 r32525 65 65 removeOsmLayer(); 66 66 osmLayer = layer; 67 Main. main.addLayer(osmLayer);67 Main.getLayerManager().addLayer(osmLayer); 68 68 } 69 69 70 70 public void removeOsmLayer() { 71 71 if (osmLayer != null) { 72 Main. main.removeLayer(osmLayer);72 Main.getLayerManager().removeLayer(osmLayer); 73 73 osmLayer = null; 74 74 } … … 78 78 removeDiffLayer(); 79 79 diffLayer = layer; 80 Main. main.addLayer(diffLayer);80 Main.getLayerManager().addLayer(diffLayer); 81 81 } 82 82 83 83 public void removeDiffLayer() { 84 84 if (diffLayer != null) { 85 Main. main.removeLayer(diffLayer);85 Main.getLayerManager().removeLayer(diffLayer); 86 86 diffLayer = null; 87 87 }
Note:
See TracChangeset
for help on using the changeset viewer.