Changeset 3102 in josm for trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
- Timestamp:
- 10.03.2010 10:00:20 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r2912 r3102 55 55 if (!isEnabled()) 56 56 return; 57 SearchSetting s = lastSearch; 58 if (s == null) { 59 s = new SearchSetting(); 60 } 61 SearchSetting se = showSearchDialog(s); 62 if(se != null) { 63 searchWithHistory(se); 64 } 57 search(); 65 58 } 66 59 … … 74 67 75 68 public static SearchSetting showSearchDialog(SearchSetting initialValues) { 76 69 if (initialValues == null) { 70 initialValues = new SearchSetting(); 71 } 77 72 // -- prepare the combo box with the search expressions 78 73 // … … 178 173 179 174 /** 175 * Launches the dialog for specifying search criteria and runs 176 * a search 177 */ 178 public static void search() { 179 SearchSetting se = showSearchDialog(lastSearch); 180 if(se != null) { 181 searchWithHistory(se); 182 } 183 } 184 185 /** 180 186 * Adds the search specified by the settings in <code>s</code> to the 181 187 * search history and performs the search.
Note: See TracChangeset
for help on using the changeset viewer.
