Changeset 2467 in josm


Ignore:
Timestamp:
2009-11-17T07:57:02+01:00 (15 years ago)
Author:
Gubaer
Message:

applied #3961: patch by avar: Display help button in Search dialog

File:
1 edited

Legend:

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

    r2451 r2467  
    22package org.openstreetmap.josm.actions.search;
    33
     4import static org.openstreetmap.josm.gui.help.HelpUtil.ht;
    45import static org.openstreetmap.josm.tools.I18n.tr;
    56
     
    4748        super(tr("Search..."), "dialogs/search", tr("Search for objects."),
    4849                Shortcut.registerShortcut("system:find", tr("Search..."), KeyEvent.VK_F, Shortcut.GROUP_HOTKEY), true);
     50        putValue("help", ht("/Action/Search"));
    4951    }
    5052
     
    150152        );
    151153        dialog.setButtonIcons(new String[] {"dialogs/search.png", "cancel.png"});
     154        dialog.configureContextsensitiveHelp("/Action/Search", true /* show help button */);
    152155        dialog.setContent(p);
    153156        dialog.showDialog();
Note: See TracChangeset for help on using the changeset viewer.