|
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,
org.eclipse.emf.edit.provider.IItemPropertySource itemPropertySource)
Constructs an instance of EMFCompositePropertySource |
|
EMFCompositePropertySource(java.lang.Object object,
org.eclipse.emf.edit.provider.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(org.eclipse.emf.edit.provider.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(org.eclipse.emf.edit.provider.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, org.eclipse.emf.edit.provider.IItemPropertySource itemPropertySource)
EMFCompositePropertySource
object
- itemPropertySource
- public EMFCompositePropertySource(java.lang.Object object, org.eclipse.emf.edit.provider.IItemPropertySource itemPropertySource, java.lang.String category)
EMFCompositePropertySource
object
- itemPropertySource
- category
- category of the source - each descriptor inherits thatMethod Detail |
---|
public void addPropertySource(ICompositePropertySource source)
ICompositePropertySource
addPropertySource
in interface ICompositePropertySource
source
- - a composite property source to be added to the linked listprotected java.util.Map getLocalDescriptors()
public IPropertyDescriptor[] getPropertyDescriptors()
IItemPropertySource.getPropertyDescriptors
.
getPropertyDescriptors
in interface IPropertySource
getPropertyDescriptors
in class org.eclipse.emf.edit.ui.provider.PropertySource
public java.lang.Object getEditableValue()
getEditableValue
in interface IPropertySource
getEditableValue
in class org.eclipse.emf.edit.ui.provider.PropertySource
protected IPropertyDescriptor createPropertyDescriptor(org.eclipse.emf.edit.provider.IItemPropertyDescriptor itemPropertyDescriptor)
createPropertyDescriptor
in class org.eclipse.emf.edit.ui.provider.PropertySource
protected IPropertyDescriptor newPropertyDescriptor(org.eclipse.emf.edit.provider.IItemPropertyDescriptor itemPropertyDescriptor)
protected void cacheDescriptor(EMFCompositeSourcePropertyDescriptor d)
public java.lang.Object getPropertyValue(java.lang.Object propertyId)
IItemPropertyDescriptor.getPropertyValue
.
getPropertyValue
in interface IPropertySource
getPropertyValue
in class org.eclipse.emf.edit.ui.provider.PropertySource
public boolean isPropertySet(java.lang.Object propertyId)
IItemPropertyDescriptor.isPropertySet
.
isPropertySet
in interface IPropertySource
isPropertySet
in class org.eclipse.emf.edit.ui.provider.PropertySource
public void resetPropertyValue(java.lang.Object propertyId)
IItemPropertyDescriptor.resetPropertyValue
.
resetPropertyValue
in interface IPropertySource
resetPropertyValue
in class org.eclipse.emf.edit.ui.provider.PropertySource
protected java.lang.Object getObject()
public void setPropertyValue(java.lang.Object propertyId, java.lang.Object value)
IItemPropertyDescriptor.setPropertyValue
.
setPropertyValue
in interface IPropertySource
setPropertyValue
in class org.eclipse.emf.edit.ui.provider.PropertySource
protected 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.