Changeset 12579 in osm for applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/UtilsPlugin.java
- Timestamp:
- 2008-12-25T14:36:26+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/UtilsPlugin.java
r11974 r12579 17 17 import org.openstreetmap.josm.plugins.Plugin; 18 18 import org.openstreetmap.josm.gui.MapFrame; 19 import org.openstreetmap.josm.gui.MainMenu; 19 20 import org.openstreetmap.josm.gui.IconToggleButton; 20 21 import org.openstreetmap.josm.actions.JosmAction; … … 24 25 25 26 public UtilsPlugin() { 26 JosmAction action; 27 28 action = new SimplifyWayAction(); 29 SimplifyWay = Main.main.menu.toolsMenu.add(action); 30 SimplifyWay.setAccelerator(action.shortcut); 27 SimplifyWay = MainMenu.add(Main.main.menu.toolsMenu, new SimplifyWayAction()); 31 28 SimplifyWay.setEnabled(false); 32 29 }
Note:
See TracChangeset
for help on using the changeset viewer.
