Uses of Interface
org.eclipse.jface.viewers.IElementComparer
Package
Description
Provides a framework for viewers, which are model-based
content adapters for SWT widgets.
-
Uses of IElementComparer in org.eclipse.jface.viewers
Modifier and TypeMethodDescriptionStructuredViewer.getComparer()
Returns the comparer to use for comparing elements, ornull
if none has been set.TreeSelection.getElementComparer()
Returns the element comparer passed in when the tree selection has been created ornull
if no comparer has been provided.Modifier and TypeMethodDescriptionboolean
TreePath.equals
(TreePath otherPath, IElementComparer comparer) Returns whether this path is equivalent to the given path using the specified comparer to compare individual elements.int
TreePath.hashCode
(IElementComparer comparer) Returns a hash code computed from the hash codes of the segments, using the given comparer to compute the hash codes of the segments.void
StructuredViewer.setComparer
(IElementComparer comparer) Sets the comparer to use for comparing elements, ornull
to use the defaultequals
andhashCode
methods on the elements themselves.boolean
TreePath.startsWith
(TreePath treePath, IElementComparer comparer) Returns whether this path starts with the same segments as the given path, using the given comparer to compare segments.ModifierConstructorDescriptionStructuredSelection
(List elements, IElementComparer comparer) Creates a structured selection from the givenList
and element comparer.TreeSelection
(TreePath[] paths, IElementComparer comparer) Constructs a selection based on the elements identified by the given tree paths.TreeSelection
(TreePath treePath, IElementComparer comparer) Constructs a selection based on the elements identified by the given tree path.