| org.eclipse.jface.viewers.IStructuredSelection
All known Subclasses: org.eclipse.jface.viewers.StructuredSelection,
IStructuredSelection | public interface IStructuredSelection extends ISelection(Code) | | A selection containing elements.
|
Method Summary | |
public Object | getFirstElement() Returns the first element in this selection, or null
if the selection is empty. | public Iterator | iterator() Returns an iterator over the elements of this selection. | public int | size() Returns the number of elements selected in this selection. | public Object[] | toArray() Returns the elements in this selection as an array. | public List | toList() Returns the elements in this selection as a List . |
getFirstElement | public Object getFirstElement()(Code) | | Returns the first element in this selection, or null
if the selection is empty.
an element, or null if none |
iterator | public Iterator iterator()(Code) | | Returns an iterator over the elements of this selection.
an iterator over the selected elements |
size | public int size()(Code) | | Returns the number of elements selected in this selection.
the number of elements selected |
toArray | public Object[] toArray()(Code) | | Returns the elements in this selection as an array.
the selected elements as an array |
toList | public List toList()(Code) | | Returns the elements in this selection as a List .
the selected elements as a list |
|
|