Changeset 15091 in osm for applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSPlugin.java
- Timestamp:
- 2009-05-17T13:19:29+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSPlugin.java
r14120 r15091 37 37 static ArrayList<WMSInfo> wmsList = new ArrayList<WMSInfo>(); 38 38 static TreeMap<String,String> wmsListDefault = new TreeMap<String,String>(); 39 40 static boolean doOverlap = false; 41 static int overlapLat = 4; 42 static int overlapLon = 14; 39 43 40 44 // remember state of menu item to restore on changed preferences … … 77 81 78 82 TreeSet<String> keys = new TreeSet<String>(prefs.keySet()); 83 84 // Here we load the settings for "overlap" checkbox and spinboxes. 85 86 try { 87 doOverlap = Boolean.valueOf(prefs.get("wmsplugin.url.overlap")); 88 } catch (Exception e) {} // If sth fails, we drop to default settings. 89 90 try { 91 overlapLat = Integer.valueOf(prefs.get("wmsplugin.url.overlapLat")); 92 } catch (Exception e) {} // If sth fails, we drop to default settings. 93 94 try { 95 overlapLon = Integer.valueOf(prefs.get("wmsplugin.url.overlapLon")); 96 } catch (Exception e) {} // If sth fails, we drop to default settings. 97 98 // And then the names+urls of WMS servers 79 99 int prefid = 0; 80 100 String name = null;
Note:
See TracChangeset
for help on using the changeset viewer.