Project: com.ibm.rational.teamapi.scout

com.ibm.rational.teamapi.scout
Class ResourceSource.PropertySource

java.lang.Object
  extended by com.ibm.rational.teamapi.scout.DefaultPropertySource
      extended by 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
 
Constructor Summary
ResourceSource.PropertySource(com.ibm.rational.wvcm.stp.StpProperty property)
          Constructs a PropertySource for a StpProperty.
 
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 com.ibm.rational.teamapi.scout.DefaultPropertySource
getEditableValue, isPropertySet, resetPropertyValue, setPropertyValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_property

com.ibm.rational.wvcm.stp.StpProperty<?> m_property
The StpProperty being displayed by this PropertySource

Constructor Detail

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
Method Detail

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.

Generated Thu 30-Oct-2008 05:19 PM

Copyright © IBM 2008. All rights reserved.