org.eclipse.gmf.runtime.emf.ui.properties.descriptors
Class EObjectContainmentListPropertyValue
java.lang.Object
org.eclipse.gmf.runtime.emf.ui.properties.descriptors.EObjectContainmentListPropertyValue
-
All Implemented Interfaces:
-
IPropertySource
-
Direct Known Subclasses:
-
FlattenedContainmentListPropertyValue
-
public class EObjectContainmentListPropertyValue
- extends java.lang.Object
- implements
IPropertySource
A property source object that wraps around a containment list, presenting each item on the list
as if it was a property.
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
|
propertiesProvider
protected static final
PropertiesServiceAdapterFactory propertiesProvider
target
protected org.eclipse.emf.ecore.util.EObjectContainmentEList target
descriptors
protected java.util.Map descriptors
labelProvider
protected
ILabelProvider labelProvider
EObjectContainmentListPropertyValue
public EObjectContainmentListPropertyValue(org.eclipse.emf.ecore.util.EObjectContainmentEList target,
ILabelProvider labelProvider)
- Create an instance of the
EObjectContainmentListPropertyValue
-
Parameters:
-
target
- - contaiment list -
labelProvider
- - label provider
EObjectContainmentListPropertyValue
public EObjectContainmentListPropertyValue(org.eclipse.emf.ecore.util.EObjectContainmentEList target)
- Create an instance of the
EObjectContainmentListPropertyValue
-
Parameters:
-
target
- - contaiment list
createDescriptor
protected void createDescriptor(org.eclipse.emf.ecore.EObject object)
- Create and cache property descriptor for the object on the list
-
-
-
Parameters:
-
object
- - object on the containment list
getEditableValue
public java.lang.Object getEditableValue()
-
-
Specified by:
-
getEditableValue
in interface
IPropertySource
-
getPropertyDescriptors
public
IPropertyDescriptor[] getPropertyDescriptors()
-
-
Specified by:
-
getPropertyDescriptors
in interface
IPropertySource
-
getPropertyValue
public java.lang.Object getPropertyValue(java.lang.Object id)
-
-
Specified by:
-
getPropertyValue
in interface
IPropertySource
-
isPropertySet
public boolean isPropertySet(java.lang.Object id)
-
-
Specified by:
-
isPropertySet
in interface
IPropertySource
-
resetPropertyValue
public void resetPropertyValue(java.lang.Object id)
-
-
Specified by:
-
resetPropertyValue
in interface
IPropertySource
-
setPropertyValue
public void setPropertyValue(java.lang.Object id,
java.lang.Object value)
-
-
Specified by:
-
setPropertyValue
in interface
IPropertySource
-
getLabelProvider
public
ILabelProvider getLabelProvider()
-
-
-
Returns:
- Returns the labelProvider.
setLabelProvider
public void setLabelProvider(
ILabelProvider labelProvider)
-
-
-
Parameters:
-
labelProvider
- The labelProvider to set.
getTarget
public org.eclipse.emf.ecore.util.EObjectContainmentEList getTarget()
-
-
-
Returns:
- Returns the target.
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.