1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Search dialog improvements, bug 295168.

This commit is contained in:
Markus Schorn 2009-11-18 08:41:19 +00:00
parent 1cf5491c65
commit 3947de208b

View file

@ -562,6 +562,8 @@ public class PDOMSearchPage extends DialogPage implements ISearchPage {
previousPatterns = settings.getArray(STORE_PREVIOUS_PATTERNS);
if (previousPatterns != null)
patternCombo.setItems(previousPatterns);
patternCombo.setVisibleItemCount(15);
// Initialize the selection
ISelection selection = getContainer().getSelection();
@ -620,6 +622,9 @@ public class PDOMSearchPage extends DialogPage implements ISearchPage {
// TODO it might be good to do a selection parse to ensure that
// the selection is valid.
}
if (patternCombo.getText().trim().length() == 0 && previousPatterns.length > 0) {
patternCombo.setText(previousPatterns[0]);
}
caseSensitiveButton.setSelection(settings.getBoolean(STORE_CASE_SENSITIVE));