setComparer(IElementComparer comparer) Sets the comparer to use for comparing elements, or null to
use the default equals and hashCode methods on the elements themselves.
setSelection(ISelection selection) The viewer implementation of this ISelectionProvider method
make the new selection for this viewer without making it visible.
abstractpublic void
setSelection(ISelection selection, boolean reveal) Sets a new selection for this viewer and optionally makes it visible.
public void
setSorter(ViewerSorter sorter) Sets this viewer's sorter and triggers refiltering and resorting of this
viewer's element.
Returns the result of running the given elements through the filters.
Parameters: elements - the elements to filter only the elements which all filters accept
Returns the comparer to use for comparing elements, or null
if none has been set. If specified, the viewer uses this to compare and
hash elements rather than the elements' own equals and hashCode methods.
the comparer to use for comparing elements or null
Returns true if the element is filtered. Filtered elements
will not be displayed by the viewer.
Parameters: parent - the parent element Parameters: elem - the element to test true if the element is filtered
Removes the given filter from this viewer, and triggers refiltering and
resorting of the elements if required.
Parameters: filter - the filter to be removed
Sets the comparer to use for comparing elements, or null to
use the default equals and hashCode methods on the elements themselves.
Parameters: comparer - the comparer to use for comparing elements or null
Sets this viewer's sorter and triggers refiltering and resorting of this
viewer's element. Passing null turns sorting off.
Parameters: sorter - a viewer sorter, or null if none