Changeset 5449 in osm for applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/UtilsPlugin.java
- Timestamp:
- 2007-11-11T14:01:05+01:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/UtilsPlugin.java
r5434 r5449 21 21 22 22 public class UtilsPlugin extends Plugin { 23 JMenuItem MergeNodeWay;23 JMenuItem JoinNodeWay; 24 24 JMenuItem SimplifyWay; 25 25 … … 27 27 JosmAction action; 28 28 29 action = new MergeNodeWayAction();30 MergeNodeWay = Main.main.menu.toolsMenu.add(action);31 MergeNodeWay.setAccelerator(action.shortCut);32 MergeNodeWay.setEnabled(false);29 action = new JoinNodeWayAction(); 30 JoinNodeWay = Main.main.menu.toolsMenu.add(action); 31 JoinNodeWay.setAccelerator(action.shortCut); 32 JoinNodeWay.setEnabled(false); 33 33 34 34 action = new SimplifyWayAction(); … … 41 41 public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) { 42 42 if (oldFrame == null && newFrame != null) { 43 MergeNodeWay.setEnabled(true);43 JoinNodeWay.setEnabled(true); 44 44 SimplifyWay.setEnabled(true); 45 45 }
Note:
See TracChangeset
for help on using the changeset viewer.
