Changeset 18404 in osm for applications/editors/josm/plugins/wmsplugin/src
- Timestamp:
- 2009-11-01T13:19:59+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSPlugin.java ¶
r17556 r18404 1 1 package wmsplugin; 2 2 3 import static org.openstreetmap.josm. tools.I18n.marktr;3 import static org.openstreetmap.josm.gui.help.HelpUtil.ht; 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 … … 51 51 static int overlapEast = 14; 52 52 static int overlapNorth = 4; 53 53 54 54 // remember state of menu item to restore on changed preferences 55 55 static private boolean menuEnabled = false; 56 56 57 57 protected void initExporterAndImporter() { 58 58 ExtensionFileFilter.exporters.add(new WMSLayerExporter()); … … 94 94 TreeSet<String> keys = new TreeSet<String>(prefs.keySet()); 95 95 96 // Here we load the settings for "overlap" checkbox and spinboxes. 97 98 try { 99 doOverlap = Boolean.valueOf(prefs.get("wmsplugin.url.overlap")); 100 } catch (Exception e) {} // If sth fails, we drop to default settings. 101 102 try { 103 overlapEast = Integer.valueOf(prefs.get("wmsplugin.url.overlapEast")); 104 } catch (Exception e) {} // If sth fails, we drop to default settings. 105 106 try { 107 overlapNorth = Integer.valueOf(prefs.get("wmsplugin.url.overlapNorth")); 108 } catch (Exception e) {} // If sth fails, we drop to default settings. 96 // Here we load the settings for "overlap" checkbox and spinboxes. 97 98 try { 99 doOverlap = Boolean.valueOf(prefs.get("wmsplugin.url.overlap")); 100 } catch (Exception e) {} // If sth fails, we drop to default settings. 101 102 try { 103 overlapEast = Integer.valueOf(prefs.get("wmsplugin.url.overlapEast")); 104 } catch (Exception e) {} // If sth fails, we drop to default settings. 105 106 try { 107 overlapNorth = Integer.valueOf(prefs.get("wmsplugin.url.overlapNorth")); 108 } catch (Exception e) {} // If sth fails, we drop to default settings. 109 109 110 110 // And then the names+urls of WMS servers … … 169 169 170 170 if (wmsJMenu == null) 171 wmsJMenu = menu.addMenu( marktr("WMS"), KeyEvent.VK_W, menu.defaultMenuPos);171 wmsJMenu = menu.addMenu(tr("WMS"), KeyEvent.VK_W, menu.defaultMenuPos, ht("/Plugin/WMS")); 172 172 else 173 173 wmsJMenu.removeAll();
Note:
See TracChangeset
for help on using the changeset viewer.