Commit 19ee7f3
committed
PreferenceDialog: render filter as native search field
Give the preference dialog's filter field the full set of search-related
style bits (SWT.SEARCH | SWT.ICON_SEARCH | SWT.ICON_CANCEL) so it is
rendered as a native search field with a magnifier and cancel icon.
Also override setInitialText to expose the hint via Text#setMessage
only, instead of stuffing it into the field's content. The dialog
auto-focuses the filter field on open, so the old initial-text fallback
was never actually shown as a placeholder and forced users to delete
the hint before typing.1 parent fc4799a commit 19ee7f3
1 file changed
Lines changed: 12 additions & 0 deletions
File tree
- bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/dialogs
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
122 | 134 | | |
123 | 135 | | |
124 | 136 | | |
| |||
0 commit comments