Changeset 32556 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionLoadFromCache.java
- Timestamp:
- 2016-07-04T14:18:17+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionLoadFromCache.java
r32329 r32556 1 // License: GPL. v2 and later. Copyright 2008-2009 by Pieren <pieren3@gmail.com> and others1 // License: GPL. For details, see LICENSE file. 2 2 package cadastre_fr; 3 3 … … 39 39 if (file.exists()) { 40 40 String filename = file.getName(); 41 String ext = (filename.lastIndexOf('.') ==-1)?"":filename.substring(filename.lastIndexOf('.')+1,filename.length());41 String ext = (filename.lastIndexOf('.') == -1) ? "" : filename.substring(filename.lastIndexOf('.')+1, filename.length()); 42 42 if ((ext.length() == 3 && ext.substring(0, CacheControl.C_LAMBERT_CC_9Z.length()).equals(CacheControl.C_LAMBERT_CC_9Z) && 43 43 !(CadastrePlugin.isLambert_cc9())) … … 45 45 !(CadastrePlugin.isUtm_france_dom())) 46 46 || (ext.length() == 1) && !(CadastrePlugin.isLambert())) { 47 JOptionPane.showMessageDialog(Main.parent, tr("{0} not allowed with the current projection", filename), tr("Error"), JOptionPane.ERROR_MESSAGE); 47 JOptionPane.showMessageDialog(Main.parent, tr("{0} not allowed with the current projection", filename), 48 tr("Error"), JOptionPane.ERROR_MESSAGE); 48 49 continue; 49 50 } else { … … 56 57 try { 57 58 int cacheZone = Integer.parseInt(ext) - 1; 58 if (cacheZone >=0 && cacheZone <= 9) { 59 if (cacheZone >= 0 && cacheZone <= 9) { 59 60 if (cacheZone != layoutZone) { 60 JOptionPane.showMessageDialog(Main.parent, tr("Cannot load cache {0} which is not compatible with current projection zone", filename), tr("Error"), JOptionPane.ERROR_MESSAGE); 61 JOptionPane.showMessageDialog(Main.parent, 62 tr("Cannot load cache {0} which is not compatible with current projection zone", filename), 63 tr("Error"), JOptionPane.ERROR_MESSAGE); 61 64 continue nextFile; 62 65 } else
Note:
See TracChangeset
for help on using the changeset viewer.
