Changeset 6792 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/projection/UTMProjectionChoice.java
- Timestamp:
- 2014-01-31T02:44:56+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/projection/UTMProjectionChoice.java
r6316 r6792 16 16 import javax.swing.JRadioButton; 17 17 18 import org.openstreetmap.josm.Main; 18 19 import org.openstreetmap.josm.tools.GBC; 19 20 20 21 public class UTMProjectionChoice extends ListProjectionChoice { 21 22 22 public enum Hemisphere { North, South } 23 /** Earth emispheres **/ 24 public enum Hemisphere { 25 /** North emisphere */ 26 North, 27 /** South emisphere */ 28 South 29 } 23 30 24 31 private static final Hemisphere DEFAULT_HEMISPHERE = Hemisphere.North; … … 129 136 if(zoneval > 0 && zoneval <= 60) 130 137 return Arrays.asList(zonestring, hemisphere.toString()); 131 } catch(NumberFormatException e) {} 138 } catch(NumberFormatException e) { 139 Main.warn(e); 140 } 132 141 } 133 142 return null; … … 158 167 try { 159 168 return Integer.parseInt(zone) - 1; 160 } catch(NumberFormatException e) {} 169 } catch(NumberFormatException e) { 170 Main.warn(e); 171 } 161 172 return defaultIndex; 162 173 }
Note:
See TracChangeset
for help on using the changeset viewer.