Ignore:
Timestamp:
2009-03-18T15:55:16+01:00 (16 years ago)
Author:
stoecker
Message:

fix the menu changes in JOSM

Location:
applications/editors/josm/plugins/wmsplugin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified applications/editors/josm/plugins/wmsplugin/build.xml

    r14015 r14120  
    2929                <attribute name="Plugin-Description" value="Display georeferenced images as background in JOSM (WMS servers, Yahoo, ...)."/>
    3030                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/WMSPlugin"/>
    31                 <attribute name="Plugin-Mainversion" value="1465"/>
     31                <attribute name="Plugin-Mainversion" value="1498"/>
    3232                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    3333                <attribute name="de_Plugin-Link" value="http://wiki.openstreetmap.org/wiki/DE:JOSM/Plugins/WMSPlugin"/>
  • TabularUnified applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSPlugin.java

    r13648 r14120  
    11package wmsplugin;
    22
     3import static org.openstreetmap.josm.tools.I18n.marktr;
    34import static org.openstreetmap.josm.tools.I18n.tr;
    4 
    55
    66import java.awt.event.ActionEvent;
     
    1616import javax.swing.AbstractButton;
    1717import javax.swing.JMenu;
    18 import javax.swing.JMenuBar;
    1918import javax.swing.JMenuItem;
    2019
     
    130129        MainMenu menu = Main.main.menu;
    131130
    132         if (wmsJMenu == null) {
    133             wmsJMenu = new JMenu(tr("WMS"));
    134             menu.add(wmsJMenu, KeyEvent.VK_W, "wms");
    135             menu.add(wmsJMenu, 5);
    136         } else {
     131        if (wmsJMenu == null)
     132            wmsJMenu = menu.addMenu(marktr("WMS"), KeyEvent.VK_W, menu.defaultMenuPos);
     133        else
    137134            wmsJMenu.removeAll();
    138         }
    139135
    140136        // for each configured WMSInfo, add a menu entry.
Note: See TracChangeset for help on using the changeset viewer.