Commit 48463b4
committed
Show filter hint only as placeholder in filtered viewers
AbstractFilteredViewerComposite#setInitialText wrote the hint into the
filter field value when the field had focus, which required clear-on-focus
handling and could be misread by screen readers as an actual filter value.
Expose the hint solely via Text#setMessage instead.
This aligns FilteredTree, the e4 FilteredTree and FilteredTable with the
approach already used by FilteredPreferenceDialog and ChooseWorkspaceDialog.1 parent 968d4ce commit 48463b4
3 files changed
Lines changed: 9 additions & 27 deletions
File tree
- bundles
- org.eclipse.e4.ui.dialogs/src/org/eclipse/e4/ui/dialogs/filteredtree
- org.eclipse.jface/src/org/eclipse/jface/viewers
- org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/dialogs
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | | - | |
429 | | - | |
430 | | - | |
| 428 | + | |
431 | 429 | | |
432 | 430 | | |
433 | 431 | | |
| |||
Lines changed: 7 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
283 | | - | |
284 | | - | |
| 282 | + | |
285 | 283 | | |
286 | | - | |
| 284 | + | |
287 | 285 | | |
288 | 286 | | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
306 | 292 | | |
307 | 293 | | |
308 | 294 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
618 | | - | |
619 | | - | |
620 | | - | |
| 618 | + | |
621 | 619 | | |
622 | 620 | | |
623 | 621 | | |
| |||
0 commit comments