|
Project: com.ibm.rational.teamapi.scout | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.rational.teamapi.scout.DefaultPropertySource
com.ibm.rational.teamapi.scout.ResourceSource
public class ResourceSource
An implementation of IPropertySource for displaying the properties of a CM API Resource. ProperyName objects are used for the property identifiers.
| Nested Class Summary | |
|---|---|
(package private) static class |
ResourceSource.ArraySource
A PropertySource for displaying properties whose value is an array. |
(package private) static class |
ResourceSource.ListSource
A PropertySource for displaying properties whose value is a list. |
(package private) static class |
ResourceSource.PropertySource
A PropertySource for displaying properties whose value is a StpProperty. |
(package private) static class |
ResourceSource.ResourcePropertyDescriptor
A PropertyDescriptor for CM API resource properties. |
| Field Summary | |
|---|---|
(package private) static java.lang.String[] |
ADVANCED_PROPERTY_FLAGS
The value used to flag properties with errors |
(package private) org.eclipse.ui.views.properties.IPropertyDescriptor[] |
m_descriptors
The cached property descriptors for the properties read. |
protected com.ibm.rational.wvcm.stp.StpResource |
m_resource
The proxy for the resource whose properties are displayed by this source |
(package private) static javax.wvcm.PropertyRequestItem.PropertyRequest |
WANTED_PROPS
The PropertyRequest used to request all properties from the resource |
| Constructor Summary | |
|---|---|
ResourceSource(com.ibm.rational.wvcm.stp.StpResource resource)
Constructs a ResourceSource object for displaying the properties of a resource identified by a Resource proxy. |
|
| Method Summary | |
|---|---|
private static java.lang.String |
getDisplayName(java.lang.Object item,
int index)
Constructs an appropriate display name for an item in a compound value. |
org.eclipse.ui.views.properties.IPropertyDescriptor[] |
getPropertyDescriptors()
Requests all properties from the server and then constructs a property descriptor for each property returned. |
private static java.lang.Object |
getPropertySource(java.lang.Object val)
Selects a possible PropertySource for a given value based on the data type of the value. |
java.lang.Object |
getPropertyValue(java.lang.Object id)
Retrieves the value of a property from the resource proxy. |
| 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 |
|---|
protected com.ibm.rational.wvcm.stp.StpResource m_resource
org.eclipse.ui.views.properties.IPropertyDescriptor[] m_descriptors
static final javax.wvcm.PropertyRequestItem.PropertyRequest WANTED_PROPS
static final java.lang.String[] ADVANCED_PROPERTY_FLAGS
| Constructor Detail |
|---|
ResourceSource(com.ibm.rational.wvcm.stp.StpResource resource)
resource - A Resource proxy for the resource whose properties are
to be displayed.| Method Detail |
|---|
public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
public java.lang.Object getPropertyValue(java.lang.Object id)
id - The property identifier, which, in this case, is the
PropertyName of the CM API property.
private static java.lang.Object getPropertySource(java.lang.Object val)
val - The value to be displayed
private static java.lang.String getDisplayName(java.lang.Object item,
int index)
item - The item to be displayedindex - the index of the item in it's list.
|
Generated Sun 12-Oct-2008 03:27 AM | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||