Changeset 33047 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionSaveRasterAs.java
- Timestamp:
- 2016-10-30T21:24:41+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionSaveRasterAs.java
r32556 r33047 9 9 import java.io.File; 10 10 import java.io.IOException; 11 import java.util.Locale; 11 12 12 13 import javax.imageio.ImageIO; … … 29 30 public class MenuActionSaveRasterAs extends JosmAction { 30 31 31 public static String name= marktr("Save image as...");32 public static final String NAME = marktr("Save image as..."); 32 33 33 34 private static final long serialVersionUID = 1L; … … 41 42 return true; 42 43 } 43 return file.getName().toLowerCase().endsWith(".png"); 44 return file.getName().toLowerCase(Locale.ENGLISH).endsWith(".png"); 44 45 } 45 46 … … 56 57 return true; 57 58 } 58 return file.getName().toLowerCase().endsWith(".tif"); 59 return file.getName().toLowerCase(Locale.ENGLISH).endsWith(".tif"); 59 60 } 60 61 … … 68 69 FiltrePng filtrePng = new FiltrePng(); 69 70 71 /** 72 * Constructs a new {@code MenuActionSaveRasterAs}. 73 * @param wmsLayer WMS layer 74 */ 70 75 public MenuActionSaveRasterAs(WMSLayer wmsLayer) { 71 super(tr( name), "save", tr("Export image (only raster images)"), null, false);76 super(tr(NAME), "save", tr("Export image (only raster images)"), null, false); 72 77 this.wmsLayer = wmsLayer; 73 78 } … … 126 131 coverage.dispose(true); 127 132 } catch (Exception e) { 128 // TODO Auto-generated catch block 129 e.printStackTrace(); 133 Main.error(e); 130 134 } 131 135 }
Note:
See TracChangeset
for help on using the changeset viewer.
