Changeset 12279 in josm for trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
- Timestamp:
- 2017-05-30T15:12:36+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r11986 r12279 340 340 Main.parent, 341 341 initialValues instanceof Filter ? tr("Filter") : tr("Search"), 342 new String[] { 343 initialValues instanceof Filter ? tr("Submit filter") : tr("Start Search"), 344 tr("Cancel")} 342 initialValues instanceof Filter ? tr("Submit filter") : tr("Start Search"), 343 tr("Cancel") 345 344 ) { 346 345 @Override … … 368 367 } 369 368 }; 370 dialog.setButtonIcons( new String[] {"dialogs/search", "cancel"});369 dialog.setButtonIcons("dialogs/search", "cancel"); 371 370 dialog.configureContextsensitiveHelp("/Action/Search", true /* show help button */); 372 371 dialog.setContent(p); 373 dialog.showDialog(); 374 int result = dialog.getValue(); 375 376 if (result != 1) return null; 372 373 if (dialog.showDialog().getValue() != 1) return null; 377 374 378 375 // User pressed OK - let's perform the search
Note:
See TracChangeset
for help on using the changeset viewer.