Ticket #3961: josm-help-search.patch
File josm-help-search.patch, 1.2 KB (added by , 15 years ago) |
---|
-
src/org/openstreetmap/josm/actions/search/SearchAction.java
1 1 // License: GPL. Copyright 2007 by Immanuel Scholz and others 2 2 package org.openstreetmap.josm.actions.search; 3 3 4 import static org.openstreetmap.josm.gui.help.HelpUtil.ht; 4 5 import static org.openstreetmap.josm.tools.I18n.tr; 5 6 6 7 import java.awt.Font; … … 46 47 public SearchAction() { 47 48 super(tr("Search..."), "dialogs/search", tr("Search for objects."), 48 49 Shortcut.registerShortcut("system:find", tr("Search..."), KeyEvent.VK_F, Shortcut.GROUP_HOTKEY), true); 50 putValue("help", ht("/Action/Search")); 49 51 } 50 52 51 53 public void actionPerformed(ActionEvent e) { … … 149 151 tr("Cancel")} 150 152 ); 151 153 dialog.setButtonIcons(new String[] {"dialogs/search.png", "cancel.png"}); 154 dialog.configureContextsensitiveHelp("/Action/Search", true /* show help button */); 152 155 dialog.setContent(p); 153 156 dialog.showDialog(); 154 157 int result = dialog.getValue();