Skip to content
Open
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 @@ -126,9 +126,9 @@ protected Text doCreateFilterText(Composite parent) {

@Override
public void setInitialText(String text) {
if (filterText != null && !filterText.isDisposed()) {
filterText.setMessage(text != null ? text : ""); //$NON-NLS-1$
}
// No placeholder hint; the search icon already signals the field's purpose.
// initialText is still tracked for the empty-filter check and accessible name.
initialText = text != null ? text : ""; //$NON-NLS-1$
}

/**
Expand All @@ -140,7 +140,8 @@ protected void addFilter(ViewerFilter filter) {
getViewer().addFilter(filter);

if (filterText != null) {
setFilterText(WorkbenchMessages.FilteredTree_FilterMessage);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this removal make other places using that NLS obsolete or maybe kind of incompatible, such as ... ?

|| previousFilterText.equals(WorkbenchMessages.FilteredTree_FilterMessage)

// Keep the field empty so the viewer filter narrows the pages; the
// hint text would otherwise be applied as a pattern and hide all pages.
textChanged();
}

Expand Down
Loading