|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.emf.ui.properties.util.PropertyPageSelection
public class PropertyPageSelection
A structured selection for use in the property page dialog. It adapts to the following types
Constructor Summary | |
---|---|
PropertyPageSelection(java.util.List selectedObjects)
Constructs a new instance with a list of selected objects. |
|
PropertyPageSelection(java.lang.Object selectedObject)
Constructs a new instance with a single selected object |
Method Summary | |
---|---|
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
java.lang.Object |
getFirstElement()
Returns the first element in this selection, or null
if the selection is empty. |
boolean |
isEmpty()
Returns whether this 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 class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyPageSelection(java.lang.Object selectedObject)
selectedObject
- The selected objectpublic PropertyPageSelection(java.util.List selectedObjects)
selectedObjects
- The objects that are selectedMethod Detail |
---|
public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter
in interface IAdaptable
IAdaptable.getAdapter(Class)
public boolean isEmpty()
isEmpty
in interface ISelection
true
if this selection is empty,
and false
otherwisepublic java.lang.Object getFirstElement()
null
if the selection is empty.
getFirstElement
in interface IStructuredSelection
null
if nonepublic java.util.Iterator iterator()
iterator
in interface IStructuredSelection
public int size()
size
in interface IStructuredSelection
public java.lang.Object[] toArray()
toArray
in interface IStructuredSelection
public java.util.List toList()
List
.
toList
in interface IStructuredSelection
|
Runtime | |||||||||
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., Borland Software Corp., and others 2005,2006. All rights reserved.