com.ibm.jdg2e.simplemodel.adapters
Class LocationPropertySource

java.lang.Object
  extended bycom.ibm.jdg2e.simplemodel.adapters.LocationPropertySource
All Implemented Interfaces:
ILocationPropertySource, org.eclipse.ui.views.properties.IPropertySource

public class LocationPropertySource
extends java.lang.Object
implements org.eclipse.ui.views.properties.IPropertySource, ILocationPropertySource

Provides support for read-only and modifiable values that are shown in the Properties view. JDG2E: 99c - Delegates IPropertySource implementation to standalone class


Field Summary
 
Fields inherited from interface com.ibm.jdg2e.simplemodel.adapters.ILocationPropertySource
PROP_DISPLAY_ACTIVITY, PROP_DISPLAY_NAME, PROP_DISPLAY_NOTHING, PROP_DISPLAY_POLITICAL, PROP_ID_ACTIVITY, PROP_ID_NAME, PROP_ID_NOTHING, PROP_ID_POLITICAL
 
Constructor Summary
LocationPropertySource(ILocation location)
          Constructor connects the IPropertySource implementation with the ILocation object involved.
 
Method Summary
 java.lang.Object getEditableValue()
           
 org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
          Descriptors describe what will be shown in the Properties view.
 java.lang.Object getPropertyValue(java.lang.Object id)
          Returns value for ID; IDs logically map to ILocation attributes.
 boolean isPropertySet(java.lang.Object id)
           
 void resetPropertyValue(java.lang.Object id)
           
 void setPropertyValue(java.lang.Object id, java.lang.Object value)
          Takes modification made in the Properties view and applies them to the appropriate property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationPropertySource

public LocationPropertySource(ILocation location)
Constructor connects the IPropertySource implementation with the ILocation object involved.

Parameters:
location -
Method Detail

getEditableValue

public java.lang.Object getEditableValue()
Specified by:
getEditableValue in interface org.eclipse.ui.views.properties.IPropertySource

getPropertyDescriptors

public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
Descriptors describe what will be shown in the Properties view. The array of IPropertyDescriptor instances describes each attribute that will be displayed. The type of descripter determines how the UI works (Readonly, modifiable, drop-down...).

Specified by:
getPropertyDescriptors in interface org.eclipse.ui.views.properties.IPropertySource
Returns:
IPropertyDescriptor[] - rows for Properties view
See Also:
IPropertySource.getPropertyDescriptors()

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.Object id)
Returns value for ID; IDs logically map to ILocation attributes.

Specified by:
getPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource
See Also:
IPropertySource.getPropertyValue(java.lang.Object)

isPropertySet

public boolean isPropertySet(java.lang.Object id)
Specified by:
isPropertySet in interface org.eclipse.ui.views.properties.IPropertySource

resetPropertyValue

public void resetPropertyValue(java.lang.Object id)
Specified by:
resetPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource

setPropertyValue

public void setPropertyValue(java.lang.Object id,
                             java.lang.Object value)
Takes modification made in the Properties view and applies them to the appropriate property.

Specified by:
setPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource
See Also:
IPropertySource.setPropertyValue(java.lang.Object, java.lang.Object)