Changeset 3835 in josm for trunk/src/org
- Timestamp:
- 2011-01-31T00:10:01+01:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AddImageryLayerAction.java
r3826 r3835 25 25 public void actionPerformed(ActionEvent e) { 26 26 if (!isEnabled()) return; 27 ImageryLayer wmsLayer = ImageryLayer.create(info); 28 Main.main.addLayer(wmsLayer); 27 Main.main.addLayer(ImageryLayer.create(info)); 29 28 } 30 29 -
trunk/src/org/openstreetmap/josm/actions/DeleteAction.java
r3083 r3835 26 26 if(!Main.map.mapView.isActiveLayerVisible()) 27 27 return; 28 new org.openstreetmap.josm.actions.mapmode.DeleteAction(Main.map) 29 .doActionPerformed(e); 28 org.openstreetmap.josm.actions.mapmode.DeleteAction.doActionPerformed(e); 30 29 } 31 30 -
trunk/src/org/openstreetmap/josm/actions/JosmAction.java
r3504 r3835 127 127 * @return the current edit layer. null, if no edit layer exists 128 128 */ 129 protected OsmDataLayer getEditLayer() {129 protected static OsmDataLayer getEditLayer() { 130 130 return Main.main.getEditLayer(); 131 131 } … … 136 136 * @return the current dataset. null, if no current dataset exists 137 137 */ 138 protected DataSet getCurrentDataSet() {138 protected static DataSet getCurrentDataSet() { 139 139 return Main.main.getCurrentDataSet(); 140 140 } -
trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java
r3177 r3835 133 133 @Override public void actionPerformed(ActionEvent e) { 134 134 super.actionPerformed(e); 135 if(!Main.map.mapView.isActiveLayerDrawable())136 return;137 135 doActionPerformed(e); 138 136 } 139 137 140 public void doActionPerformed(ActionEvent e) {138 static public void doActionPerformed(ActionEvent e) { 141 139 if(!Main.map.mapView.isActiveLayerDrawable()) 142 140 return;
Note:
See TracChangeset
for help on using the changeset viewer.