public interface IStructuredSelection extends ISelection
Modifier and Type | Method and Description |
---|---|
Object |
getFirstElement()
Returns the first element in this selection, or
null
if the 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 . |
isEmpty
Object getFirstElement()
null
if the selection is empty.null
if noneIterator iterator()
int size()
Object[] toArray()
List toList()
List
.
Note In the default implementation of toList()
in
StructuredSelection
the returned list is not a copy of the elements of the
receiver and modifying it will modify the contents of the selection.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.