|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IStructuredSelection
A selection containing elements.
| Method Summary | |
|---|---|
java.lang.Object |
getFirstElement()
Returns the first element in this selection, or null
if the selection is empty. |
java.util.Iterator |
iterator()
Returns an iterator over the elements of this selection. |
int |
size()
Returns the number of elements selected in this selection. |
java.lang.Object[] |
toArray()
Returns the elements in this selection as an array. |
java.util.List |
toList()
Returns the elements in this selection as a List. |
| Methods inherited from interface org.eclipse.jface.viewers.ISelection |
|---|
isEmpty |
| Method Detail |
|---|
java.lang.Object getFirstElement()
null
if the selection is empty.
null if nonejava.util.Iterator iterator()
int size()
java.lang.Object[] toArray()
java.util.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.
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.