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:
parent
1cf5491c65
commit
3947de208b
1 changed files with 5 additions and 0 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue