Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,18 @@ protected class PreferenceFilteredTree extends FilteredTree {
super(parent, treeStyle, filter, true, true);
}

@Override
protected Text doCreateFilterText(Composite parent) {
return new Text(parent, SWT.SINGLE | SWT.BORDER | SWT.SEARCH | SWT.ICON_SEARCH | SWT.ICON_CANCEL);
}

@Override
public void setInitialText(String text) {
if (filterText != null && !filterText.isDisposed()) {
filterText.setMessage(text != null ? text : ""); //$NON-NLS-1$
}
}

/**
* Add an additional, optional filter to the viewer. If the filter text is
* cleared, this filter will be removed from the TreeViewer.
Expand Down
Loading