Changeset 5966 in josm for trunk/src/org/openstreetmap/josm/actions/JumpToAction.java
- Timestamp:
- 2013-05-18T20:15:51+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/JumpToAction.java
r5965 r5966 8 8 import java.awt.event.ActionEvent; 9 9 import java.awt.event.KeyEvent; 10 import java.awt.event.MouseEvent; 11 import java.awt.event.MouseListener; 10 import javax.swing.Icon; 12 11 13 12 import javax.swing.JLabel; … … 21 20 import org.openstreetmap.josm.data.coor.LatLon; 22 21 import org.openstreetmap.josm.gui.MapView; 22 23 23 import org.openstreetmap.josm.tools.GBC; 24 24 import org.openstreetmap.josm.tools.OsmUrlToBounds; … … 31 31 */ 32 32 public JumpToAction() { 33 super(tr("Jump To Position"), null, tr("Opens a dialog that allows to jump to a specific location"), Shortcut.registerShortcut("tools:jumpto", tr("Tool: {0}", tr("Jump To Position")), 34 KeyEvent.VK_J, Shortcut.CTRL), false); 35 putValue("toolbar", "action/jumpto"); 36 Main.toolbar.register(this); 33 super(tr("Jump To Position"), (Icon) null, tr("Opens a dialog that allows to jump to a specific location"), Shortcut.registerShortcut("tools:jumpto", tr("Tool: {0}", tr("Jump To Position")), 34 KeyEvent.VK_J, Shortcut.CTRL), true, "action/jumpto", false); 37 35 } 38 36 … … 169 167 } 170 168 169 @Override 171 170 public void actionPerformed(ActionEvent e) { 172 171 showJumpToDialog();
Note:
See TracChangeset
for help on using the changeset viewer.