Changeset 5434 in osm for applications
- Timestamp:
- 2007-11-10T13:57:37+01:00 (17 years ago)
- Location:
- applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/MergeNodeWayAction.java
r5076 r5434 13 13 14 14 import java.awt.event.ActionEvent; 15 import java.awt.event.KeyEvent; 15 16 16 17 import org.openstreetmap.josm.Main; … … 33 34 public MergeNodeWayAction() { 34 35 super(tr("Join node to way"), "mergenodeway", 35 tr("Join a node into the nearest way segments"), 0, 0, true);36 tr("Join a node into the nearest way segments"), KeyEvent.VK_J, KeyEvent.CTRL_MASK | KeyEvent.SHIFT_MASK, true); 36 37 } 37 38 -
applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/SimplifyWayAction.java
r5226 r5434 4 4 5 5 import java.awt.event.ActionEvent; 6 import java.awt.event.KeyEvent; 6 7 import java.util.ArrayList; 7 8 import java.util.Collection; … … 28 29 public SimplifyWayAction() { 29 30 super(tr("Simplify Way"), "simplify", 30 tr("Delete unnecessary nodes from a way."), 0, 0, true);31 tr("Delete unnecessary nodes from a way."), KeyEvent.VK_Y, KeyEvent.CTRL_MASK | KeyEvent.SHIFT_MASK, true); 31 32 } 32 33 -
applications/editors/josm/plugins/utilsplugin/src/UtilsPlugin/UtilsPlugin.java
r5417 r5434 18 18 import org.openstreetmap.josm.gui.MapFrame; 19 19 import org.openstreetmap.josm.gui.IconToggleButton; 20 import org.openstreetmap.josm.actions.JosmAction; 20 21 21 22 public class UtilsPlugin extends Plugin { … … 24 25 25 26 public UtilsPlugin() { 26 MergeNodeWay = Main.main.menu.toolsMenu.add(new MergeNodeWayAction()); 27 JosmAction action; 28 29 action = new MergeNodeWayAction(); 30 MergeNodeWay = Main.main.menu.toolsMenu.add(action); 31 MergeNodeWay.setAccelerator(action.shortCut); 27 32 MergeNodeWay.setEnabled(false); 28 SimplifyWay = Main.main.menu.toolsMenu.add(new SimplifyWayAction()); 33 34 action = new SimplifyWayAction(); 35 SimplifyWay = Main.main.menu.toolsMenu.add(action); 36 SimplifyWay.setAccelerator(action.shortCut); 29 37 SimplifyWay.setEnabled(false); 30 38 }
Note:
See TracChangeset
for help on using the changeset viewer.