Changeset 5449 in osm for applications/editors/josm/plugins/utilsplugin/src
- Timestamp:
- 2007-11-11T14:01:05+01:00 (17 years ago)
- Location:
- applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/JoinNodeWayAction.java
r5436 r5449 31 31 import javax.swing.AbstractAction; 32 32 33 class MergeNodeWayAction extends JosmAction {34 public MergeNodeWayAction() {35 super(tr("Join node to way"), " mergenodeway",33 class JoinNodeWayAction extends JosmAction { 34 public JoinNodeWayAction() { 35 super(tr("Join node to way"), "joinnodeway", 36 36 tr("Join a node into the nearest way segments"), KeyEvent.VK_J, KeyEvent.CTRL_MASK | KeyEvent.SHIFT_MASK, true); 37 37 } -
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.