|
Runtime | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.edit.ui.provider.PropertySource
org.eclipse.gmf.runtime.emf.ui.properties.descriptors.EMFCompositePropertySource
public class EMFCompositePropertySource
IItemPropertySource wrapper, is a linked list of composite
property sources - may contain another composite property source wrapper
inside.
For example, a edit part will have a composite source, consisting of two -
one (outer) for the shape itself and other (enclosed) - for the underlying
UML element
| Field Summary |
|---|
| Fields inherited from class org.eclipse.emf.edit.ui.provider.PropertySource |
|---|
itemPropertySource, object |
| Constructor Summary | |
|---|---|
protected |
EMFCompositePropertySource(java.lang.Object object,
IItemPropertySource itemPropertySource)
Constructs an instance of EMFCompositePropertySource |
|
EMFCompositePropertySource(java.lang.Object object,
IItemPropertySource itemPropertySource,
java.lang.String category)
Constructs an instance of EMFCompositePropertySource |
| Method Summary | |
|---|---|
void |
addPropertySource(ICompositePropertySource source)
Add another composite property source to the linked list |
protected void |
cacheDescriptor(EMFCompositeSourcePropertyDescriptor d)
|
protected IPropertyDescriptor |
createPropertyDescriptor(IItemPropertyDescriptor itemPropertyDescriptor)
|
protected java.lang.String |
getCategory()
|
java.lang.Object |
getEditableValue()
|
protected java.util.Map |
getLocalDescriptors()
|
protected java.lang.Object |
getObject()
|
IPropertyDescriptor[] |
getPropertyDescriptors()
This delegates to This method can cache the (local, not children) descriptors so that their array will be modifiable (if there is a strong requirement to do so) We can cache them (as an optimization) IItemPropertySource.getPropertyDescriptors. |
java.lang.Object |
getPropertyValue(java.lang.Object propertyId)
This delegates to IItemPropertyDescriptor.getPropertyValue. |
boolean |
isPropertySet(java.lang.Object propertyId)
This delegates to IItemPropertyDescriptor.isPropertySet. |
protected IPropertyDescriptor |
newPropertyDescriptor(IItemPropertyDescriptor itemPropertyDescriptor)
|
void |
resetPropertyValue(java.lang.Object propertyId)
This delegates to IItemPropertyDescriptor.resetPropertyValue. |
void |
setCategory(java.lang.String category)
Sets the category. |
void |
setPropertyValue(java.lang.Object propertyId,
java.lang.Object value)
This delegates to IItemPropertyDescriptor.setPropertyValue. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected EMFCompositePropertySource(java.lang.Object object,
IItemPropertySource itemPropertySource)
EMFCompositePropertySource
object - itemPropertySource -
public EMFCompositePropertySource(java.lang.Object object,
IItemPropertySource itemPropertySource,
java.lang.String category)
EMFCompositePropertySource
object - itemPropertySource - category - category of the source - each descriptor inherits that| Method Detail |
|---|
public void addPropertySource(ICompositePropertySource source)
ICompositePropertySource
addPropertySource in interface ICompositePropertySourcesource - - a composite property source to be added to the linked listprotected java.util.Map getLocalDescriptors()
public IPropertyDescriptor[] getPropertyDescriptors()
IItemPropertySource.getPropertyDescriptors.
getPropertyDescriptors in interface IPropertySourcegetPropertyDescriptors in class PropertySourcepublic java.lang.Object getEditableValue()
getEditableValue in interface IPropertySourcegetEditableValue in class PropertySourceprotected IPropertyDescriptor createPropertyDescriptor(IItemPropertyDescriptor itemPropertyDescriptor)
createPropertyDescriptor in class PropertySourceprotected IPropertyDescriptor newPropertyDescriptor(IItemPropertyDescriptor itemPropertyDescriptor)
protected void cacheDescriptor(EMFCompositeSourcePropertyDescriptor d)
public java.lang.Object getPropertyValue(java.lang.Object propertyId)
IItemPropertyDescriptor.getPropertyValue.
getPropertyValue in interface IPropertySourcegetPropertyValue in class PropertySourcepublic boolean isPropertySet(java.lang.Object propertyId)
IItemPropertyDescriptor.isPropertySet.
isPropertySet in interface IPropertySourceisPropertySet in class PropertySourcepublic void resetPropertyValue(java.lang.Object propertyId)
IItemPropertyDescriptor.resetPropertyValue.
resetPropertyValue in interface IPropertySourceresetPropertyValue in class PropertySourceprotected java.lang.Object getObject()
public void setPropertyValue(java.lang.Object propertyId,
java.lang.Object value)
IItemPropertyDescriptor.setPropertyValue.
setPropertyValue in interface IPropertySourcesetPropertyValue in class PropertySourceprotected java.lang.String getCategory()
public void setCategory(java.lang.String category)
category - the new category value
|
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.