| |
|
| java.lang.Object org.eclipse.jface.viewers.StructuredSelection
All known Subclasses: org.eclipse.jface.viewers.TreeSelection,
StructuredSelection | public class StructuredSelection implements IStructuredSelection(Code) | | A concrete implementation of the IStructuredSelection interface,
suitable for instantiating.
This class is not intended to be subclassed.
|
EMPTY | final public static StructuredSelection EMPTY(Code) | | The canonical empty selection. This selection should be used instead of
null .
|
StructuredSelection | public StructuredSelection()(Code) | | Creates a new empty selection.
See also the static field EMPTY which contains an empty selection singleton.
See Also: StructuredSelection.EMPTY |
StructuredSelection | public StructuredSelection(Object[] elements)(Code) | | Creates a structured selection from the given elements.
Parameters: elements - an array of elements |
StructuredSelection | public StructuredSelection(Object element)(Code) | | Creates a structured selection containing a single object.
The object must not be null .
Parameters: element - the element |
StructuredSelection | public StructuredSelection(List elements)(Code) | | Creates a structured selection from the given List .
Parameters: elements - list of selected elements |
equals | public boolean equals(Object o)(Code) | | Returns whether this structured selection is equal to the given object.
Two structured selections are equal if they contain the same elements
in the same order.
Parameters: o - the other object true if they are equal, and false otherwise |
isEmpty | public boolean isEmpty()(Code) | | |
toString | public String toString()(Code) | | Internal method which returns a string representation of this
selection suitable for debug purposes only.
debug string |
|
|
|