Changeset 16509 in josm for trunk/src/org/openstreetmap/josm/actions/JumpToAction.java
- Timestamp:
- 2020-05-27T11:16:39+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/JumpToAction.java
r16411 r16509 56 56 super(tr("Jump to Position"), (ImageProvider) null, tr("Opens a dialog that allows to jump to a specific location"), 57 57 Shortcut.registerShortcut("tools:jumpto", tr("Tool: {0}", tr("Jump to Position")), 58 KeyEvent.VK_J, Shortcut.CTRL), true, "action/jumpto", true); 58 KeyEvent.VK_J, Shortcut.CTRL), true, "action/jumpto", false); 59 // make this action listen to mapframe change events 60 MainApplication.addMapFrameListener((o, n) -> updateEnabledState()); 61 59 62 setHelpId(ht("/Action/JumpToPosition")); 60 63 } … … 242 245 setEnabled(MainApplication.isDisplayingMapView()); 243 246 } 244 245 @Override246 protected void installAdapters() {247 super.installAdapters();248 // make this action listen to mapframe change events249 MainApplication.addMapFrameListener((o, n) -> updateEnabledState());250 }251 247 }
Note:
See TracChangeset
for help on using the changeset viewer.