Changeset 12187 in osm for applications/editors/josm/plugins/wmsplugin/src
- Timestamp:
- 2008-12-02T17:21:16+01:00 (16 years ago)
- 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 18 18 public Help_WMSmenuAction() { 19 19 //super("Help / About"); 20 super(tr("help"), "help", tr("Help / About"), 0, 0, false);20 super(tr("help"), "help", tr("Help / About"), null, false); 21 21 22 22 } -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/Map_Rectifier_WMSmenuAction.java
r10704 r12187 18 18 19 19 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); 21 21 } 22 22 -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSDownloadAction.java
r10704 r12187 16 16 17 17 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); 19 19 this.info = info; 20 20 } -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSPlugin.java
r11242 r12187 19 19 import org.openstreetmap.josm.Main; 20 20 import org.openstreetmap.josm.plugins.Plugin; 21 import org.openstreetmap.josm.gui.MainMenu; 21 22 import org.openstreetmap.josm.gui.MapFrame; 22 23 import org.openstreetmap.josm.gui.IconToggleButton; … … 109 110 110 111 Collections.sort(wmsList); 111 JMenuBarmenu = Main.main.menu;112 MainMenu menu = Main.main.menu; 112 113 113 114 if (wmsJMenu == null) { 114 115 wmsJMenu = new JMenu(tr("WMS")); 115 wmsJMenu.setMnemonic(KeyEvent.VK_W);116 menu.add(wmsJMenu, KeyEvent.VK_W, "wms"); 116 117 menu.add(wmsJMenu, 5); 117 118 } else { … … 128 129 wmsJMenu.addSeparator(); 129 130 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) { 131 132 public void actionPerformed(ActionEvent ev) { 132 133 Main.main.addLayer(new WMSLayer());
Note:
See TracChangeset
for help on using the changeset viewer.