|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.viewers.StructuredSelection
A concrete implementation of the IStructuredSelection interface, suitable for instantiating.
This class is not intended to be subclassed.
Field Summary | |
static StructuredSelection | EMPTY
The canonical empty selection. |
Constructor Summary | |
StructuredSelection()
Creates a new empty selection. | |
StructuredSelection(List elements)
Creates a structured selection from the given List. | |
StructuredSelection(Object element)
Creates a structured selection containing a single object. | |
StructuredSelection(Object[] elements)
Creates a structured selection from the given elements. |
Method Summary | |
boolean | equals(Object o)
Returns whether this structured selection is equal to the given object. |
Object | getFirstElement()
Returns the first element in this selection, or null if the selection is empty. |
boolean | isEmpty()
Returns whether this selection is empty. |
Iterator | iterator()
Returns an iterator over the elements of this selection. |
int | size()
Returns the number of elements selected in this selection. |
Object[] | toArray()
Returns the elements in this selection as an array. |
List | toList()
Returns the elements in this selection as a List. |
String | toString()
Internal method which returns a string representation of this selection suitable for debug purposes only. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final StructuredSelection EMPTY
Constructor Detail |
public StructuredSelection()
public StructuredSelection(Object[] elements)
public StructuredSelection(Object element)
public StructuredSelection(List elements)
Method Detail |
public boolean equals(Object o)
public Object getFirstElement()
public boolean isEmpty()
public Iterator iterator()
public int size()
public Object[] toArray()
public List toList()
public String toString()
|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.