Package | Description |
---|---|
org.eclipse.jface.viewers |
Provides a framework for viewers, which are model-based
content adapters for SWT widgets.
|
Modifier and Type | Method and Description |
---|---|
IElementComparer |
StructuredViewer.getComparer()
Returns the comparer to use for comparing elements, or
null if none has been set. |
IElementComparer |
TreeSelection.getElementComparer()
Returns the element comparer passed in when the tree selection
has been created or
null if no comparer has been
provided. |
Modifier and Type | Method and Description |
---|---|
boolean |
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, or
null
to use the default equals and hashCode
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.
|
Constructor and Description |
---|
StructuredSelection(List elements,
IElementComparer comparer)
Creates a structured selection from the given
List 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.
|
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.