Ignore:
Timestamp:
2009-11-01T13:19:59+01:00 (16 years ago)
Author:
stoecker
Message:

updated some stuff to current JOSM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSPlugin.java

    r17556 r18404  
    11package wmsplugin;
    22
    3 import static org.openstreetmap.josm.tools.I18n.marktr;
     3import static org.openstreetmap.josm.gui.help.HelpUtil.ht;
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
     
    5151    static int overlapEast = 14;
    5252    static int overlapNorth = 4;
    53    
     53
    5454    // remember state of menu item to restore on changed preferences
    5555    static private boolean menuEnabled = false;
    56    
     56
    5757    protected void initExporterAndImporter() {
    5858        ExtensionFileFilter.exporters.add(new WMSLayerExporter());
     
    9494        TreeSet<String> keys = new TreeSet<String>(prefs.keySet());
    9595
    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.
    109109
    110110        // And then the names+urls of WMS servers
     
    169169
    170170        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"));
    172172        else
    173173            wmsJMenu.removeAll();
Note: See TracChangeset for help on using the changeset viewer.