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
|
@ -563,6 +563,8 @@ public class PDOMSearchPage extends DialogPage implements ISearchPage {
|
||||||
if (previousPatterns != null)
|
if (previousPatterns != null)
|
||||||
patternCombo.setItems(previousPatterns);
|
patternCombo.setItems(previousPatterns);
|
||||||
|
|
||||||
|
patternCombo.setVisibleItemCount(15);
|
||||||
|
|
||||||
// Initialize the selection
|
// Initialize the selection
|
||||||
ISelection selection = getContainer().getSelection();
|
ISelection selection = getContainer().getSelection();
|
||||||
if (selection instanceof IStructuredSelection) {
|
if (selection instanceof IStructuredSelection) {
|
||||||
|
@ -620,6 +622,9 @@ public class PDOMSearchPage extends DialogPage implements ISearchPage {
|
||||||
// TODO it might be good to do a selection parse to ensure that
|
// TODO it might be good to do a selection parse to ensure that
|
||||||
// the selection is valid.
|
// the selection is valid.
|
||||||
}
|
}
|
||||||
|
if (patternCombo.getText().trim().length() == 0 && previousPatterns.length > 0) {
|
||||||
|
patternCombo.setText(previousPatterns[0]);
|
||||||
|
}
|
||||||
|
|
||||||
caseSensitiveButton.setSelection(settings.getBoolean(STORE_CASE_SENSITIVE));
|
caseSensitiveButton.setSelection(settings.getBoolean(STORE_CASE_SENSITIVE));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue