com.ibm.rational.teamapi.scout
Class ResourceSource.PropertySource
java.lang.Object
com.ibm.rational.teamapi.scout.DefaultPropertySource
com.ibm.rational.teamapi.scout.ResourceSource.PropertySource
- All Implemented Interfaces:
- org.eclipse.ui.views.properties.IPropertySource
- Enclosing class:
- ResourceSource
static class ResourceSource.PropertySource
- extends DefaultPropertySource
A PropertySource for displaying properties whose value is a StpProperty.
Field Summary |
(package private) com.ibm.rational.wvcm.stp.StpProperty<?> |
m_property
The StpProperty being displayed by this PropertySource |
Method Summary |
org.eclipse.ui.views.properties.IPropertyDescriptor[] |
getPropertyDescriptors()
Computes and returns an array of PropertyDescriptors, one descriptor
per meta-property defined by the StpProperty. |
java.lang.Object |
getPropertyValue(java.lang.Object id)
Retrieves the meta-property identified by a given property
identifier. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_property
com.ibm.rational.wvcm.stp.StpProperty<?> m_property
- The StpProperty being displayed by this PropertySource
ResourceSource.PropertySource
ResourceSource.PropertySource(com.ibm.rational.wvcm.stp.StpProperty property)
- Constructs a PropertySource for a StpProperty.
- Parameters:
property
- The StpProperty object to be displayed by this
PropertySource
getPropertyDescriptors
public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
- Computes and returns an array of PropertyDescriptors, one descriptor
per meta-property defined by the StpProperty. A MetaPropertyName
object is used as the property id.
- Returns:
- An array of PropertyDescriptors for the meta-properties
defined for this property.
getPropertyValue
public java.lang.Object getPropertyValue(java.lang.Object id)
- Retrieves the meta-property identified by a given property
identifier.
- Parameters:
id
- A MetaPropertyName identifying a meta-property of the
StpProperty.
- Returns:
- The value of the given meta-property, wrapped in a
PropertySource if the item is a composite object such as a
Resource, StpProperty, List, or Array.
Copyright © IBM 2008. All rights reserved.