Ignore:
Timestamp:
2008-12-02T17:21:16+01:00 (16 years ago)
Author:
stoecker
Message:

fixed some warnings, added new shortcur handling

Location:
applications/editors/josm/plugins/wmsplugin/src/wmsplugin
Files:
4 edited

Legend:

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

    r10058 r12187  
    1818        public Help_WMSmenuAction() {
    1919                //super("Help / About");
    20                 super(tr("help"), "help", tr("Help / About"), 0, 0, false);
     20                super(tr("help"), "help", tr("Help / About"), null, false);
    2121               
    2222        }
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/Map_Rectifier_WMSmenuAction.java

    r10704 r12187  
    1818
    1919        public Map_Rectifier_WMSmenuAction() {
    20                 super(tr("Rectified Image ..."), "OLmarker", tr("Download Rectified Image from Metacarta's Map Rectifer WMS"), 0, 0, false);
     20                super(tr("Rectified Image ..."), "OLmarker", tr("Download Rectified Image from Metacarta's Map Rectifer WMS"), null, false);
    2121        }
    2222
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSDownloadAction.java

    r10704 r12187  
    1616       
    1717        public WMSDownloadAction(WMSInfo info) {
    18                 super(info.name, "wmsmenu", tr("Download WMS tile from {0}",info.name), 0, 0, false);
     18                super(info.name, "wmsmenu", tr("Download WMS tile from {0}",info.name), null, false);
    1919                this.info = info;
    2020        }
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSPlugin.java

    r11242 r12187  
    1919import org.openstreetmap.josm.Main;
    2020import org.openstreetmap.josm.plugins.Plugin;
     21import org.openstreetmap.josm.gui.MainMenu;
    2122import org.openstreetmap.josm.gui.MapFrame;
    2223import org.openstreetmap.josm.gui.IconToggleButton;
     
    109110
    110111                Collections.sort(wmsList);
    111                 JMenuBar menu = Main.main.menu;
     112                MainMenu menu = Main.main.menu;
    112113
    113114                if (wmsJMenu == null) {
    114115                        wmsJMenu = new JMenu(tr("WMS"));
    115                         wmsJMenu.setMnemonic(KeyEvent.VK_W);
     116                        menu.add(wmsJMenu, KeyEvent.VK_W, "wms");
    116117                        menu.add(wmsJMenu, 5);
    117118                } else {
     
    128129                wmsJMenu.addSeparator();
    129130                wmsJMenu.add(new JMenuItem(new
    130                                 JosmAction(tr("Blank Layer"), "blankmenu", tr("Open a blank WMS layer to load data from a file"), 0, 0, false) {
     131                                JosmAction(tr("Blank Layer"), "blankmenu", tr("Open a blank WMS layer to load data from a file"), null, false) {
    131132                        public void actionPerformed(ActionEvent ev) {
    132133                                Main.main.addLayer(new WMSLayer());
Note: See TracChangeset for help on using the changeset viewer.