Changeset 6586 in josm for trunk/src


Ignore:
Timestamp:
2014-01-01T13:04:31+01:00 (11 years ago)
Author:
simon04
Message:

fix #9398 - Toolbar button for search action: set expression as tooltip

File:
1 edited

Legend:

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

    r6524 r6586  
    320320            ToolbarPreferences.ActionDefinition aDef =
    321321                    new ToolbarPreferences.ActionDefinition(Main.main.menu.search);
    322             aDef.getParameters().put("searchExpression", initialValues);
     322            aDef.getParameters().put(SEARCH_EXPRESSION, initialValues);
     323            aDef.setName(initialValues.text); // Display search expression as tooltip instead of generic one
    323324            // parametrized action definition is now composed
    324325            ActionParser actionParser = new ToolbarPreferences.ActionParser(null);
Note: See TracChangeset for help on using the changeset viewer.