Skip to content

Commit d407170

Browse files
elsazacmerks
authored andcommitted
Use setMessage() instead of setText() for filter text to display as grey
placeholder
1 parent 3efa8bf commit d407170

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/p2/ui/RepositoryManipulationPage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ protected Control createContents(Composite parent) {
217217
// Filter box
218218
pattern = new Text(composite, SWT.SINGLE | SWT.BORDER | SWT.SEARCH | SWT.CANCEL);
219219
pattern.getAccessible().addAccessibleListener(AccessibleListener.getNameAdapter(e -> e.result = DEFAULT_FILTER_TEXT));
220-
pattern.setText(DEFAULT_FILTER_TEXT);
220+
pattern.setMessage(DEFAULT_FILTER_TEXT);
221221
pattern.selectAll();
222222
pattern.addModifyListener(e -> applyFilter());
223223

0 commit comments

Comments
 (0)