Ignore:
Timestamp:
2013-05-18T20:15:51+02:00 (11 years ago)
Author:
akks
Message:

fix #8723: left click on position in status bar now opens lat/lon window again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/JumpToAction.java

    r5965 r5966  
    88import java.awt.event.ActionEvent;
    99import java.awt.event.KeyEvent;
    10 import java.awt.event.MouseEvent;
    11 import java.awt.event.MouseListener;
     10import javax.swing.Icon;
    1211
    1312import javax.swing.JLabel;
     
    2120import org.openstreetmap.josm.data.coor.LatLon;
    2221import org.openstreetmap.josm.gui.MapView;
     22
    2323import org.openstreetmap.josm.tools.GBC;
    2424import org.openstreetmap.josm.tools.OsmUrlToBounds;
     
    3131     */
    3232    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);
    3735    }
    3836
     
    169167    }
    170168
     169    @Override
    171170    public void actionPerformed(ActionEvent e) {
    172171        showJumpToDialog();
Note: See TracChangeset for help on using the changeset viewer.