Project: com.ibm.rational.teamapi.scout

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

java.lang.Object
  extended by com.ibm.rational.teamapi.scout.DefaultPropertySource
      extended by com.ibm.rational.teamapi.scout.ResourceSource.ListSource
All Implemented Interfaces:
org.eclipse.ui.views.properties.IPropertySource
Enclosing class:
ResourceSource

static class ResourceSource.ListSource
extends DefaultPropertySource

A PropertySource for displaying properties whose value is a list.


Field Summary
(package private)  java.util.List m_list
          The List that this PropertySource will be displaying
 
Constructor Summary
ResourceSource.ListSource(java.util.List list)
          Constructs a new ListSource for a List value.
 
Method Summary
 org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
          Computes and returns an array of PropertyDescriptors, one descriptor per element of the list.
 java.lang.Object getPropertyValue(java.lang.Object id)
          Retrieves the List item 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_list

java.util.List m_list
The List that this PropertySource will be displaying

Constructor Detail

ResourceSource.ListSource

ResourceSource.ListSource(java.util.List list)
Constructs a new ListSource for a List value.

Parameters:
list - The value that is 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 element of the list. An Integer object representing the ordinal position of the element in the list is used as the property id.

Returns:
An array of PropertyDescriptors for the elements of the ResourceList value of this property.

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.Object id)
Retrieves the List item identified by a given property identifier.

Parameters:
id - An Integer representing the ordinal position of the item in the list
Returns:
The value at the given index, wrapped in a PropertySource if the item is a composite object such as a Resource, List, or Array.

Generated Thu 30-Oct-2008 05:19 PM

Copyright © IBM 2008. All rights reserved.