Changeset 33226 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSAdjustAction.java
- Timestamp:
- 2017-04-12T00:46:52+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSAdjustAction.java
r32556 r33226 18 18 import org.openstreetmap.josm.actions.mapmode.MapMode; 19 19 import org.openstreetmap.josm.data.coor.EastNorth; 20 import org.openstreetmap.josm.gui.MapFrame;21 20 import org.openstreetmap.josm.gui.MapView; 22 21 import org.openstreetmap.josm.tools.ImageProvider; … … 34 33 private static EastNorth[] croppedRaster = new EastNorth[5];; 35 34 36 public WMSAdjustAction(MapFrame mapFrame) { 35 /** 36 * Constructs a new {@code WMSAdjustAction} map mode. 37 */ 38 public WMSAdjustAction() { 37 39 super(tr("Adjust WMS"), "adjustxywms", 38 tr("Adjust the position of the WMS layer (saved for raster images only)"), mapFrame,40 tr("Adjust the position of the WMS layer (saved for raster images only)"), 39 41 ImageProvider.getCursor("normal", "move")); 40 42 } … … 50 52 modifiedLayer.adjustModeEnabled = true; 51 53 } else { 52 // JOptionPane.showMessageDialog(Main.parent,tr("This mode works only if active layer is\n" 53 // +"a cadastre layer")); 54 exitMode(); 54 // This mode works only if active layer is a cadastre layer 55 if (Boolean.TRUE.equals(getValue("active"))) { 56 exitMode(); 57 } 55 58 Main.map.selectMapMode((MapMode) Main.map.getDefaultButtonAction()); 56 59 }
Note:
See TracChangeset
for help on using the changeset viewer.