Changeset 14120 in osm for applications/editors/josm/plugins/wmsplugin/src
- Timestamp:
- 2009-03-18T15:55:16+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSPlugin.java
r13648 r14120 1 1 package wmsplugin; 2 2 3 import static org.openstreetmap.josm.tools.I18n.marktr; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 4 5 5 6 6 import java.awt.event.ActionEvent; … … 16 16 import javax.swing.AbstractButton; 17 17 import javax.swing.JMenu; 18 import javax.swing.JMenuBar;19 18 import javax.swing.JMenuItem; 20 19 … … 130 129 MainMenu menu = Main.main.menu; 131 130 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 137 134 wmsJMenu.removeAll(); 138 }139 135 140 136 // for each configured WMSInfo, add a menu entry.
Note:
See TracChangeset
for help on using the changeset viewer.