edu.wpi.ebob.internal.gui
Class InstancePropertySource

java.lang.Object
  extended by edu.wpi.ebob.internal.gui.InstancePropertySource
All Implemented Interfaces:
org.eclipse.ui.views.properties.IPropertySource

public class InstancePropertySource
extends java.lang.Object
implements org.eclipse.ui.views.properties.IPropertySource

A handler for instance property data. Passed to the Properties view for displaying an instance's properties.

Author:
Liam Morley

Field Summary
private  Instance instance
          the instance whose properties we are concerned about.
private  java.lang.String instanceName
          a reference directly to the instance's name.
private  IObject instanceObj
          a reference directly to the instance's object.
private  org.eclipse.ui.views.properties.IPropertyDescriptor[] propertyDescriptors
          these are cached and returned upon subsequent calls.
 
Constructor Summary
InstancePropertySource(Instance instance)
          constructs a new property source for the given instance.
 
Method Summary
 java.lang.Object getEditableValue()
           
 org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
           
 java.lang.Object getPropertyValue(java.lang.Object id)
           
 boolean isPropertySet(java.lang.Object id)
          There is no default value.
 void resetPropertyValue(java.lang.Object id)
          Does nothing.
 void setPropertyValue(java.lang.Object id, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private final Instance instance
the instance whose properties we are concerned about.


instanceName

private final java.lang.String instanceName
a reference directly to the instance's name.


instanceObj

private final IObject instanceObj
a reference directly to the instance's object.


propertyDescriptors

private org.eclipse.ui.views.properties.IPropertyDescriptor[] propertyDescriptors
these are cached and returned upon subsequent calls.

Constructor Detail

InstancePropertySource

public InstancePropertySource(Instance instance)
constructs a new property source for the given instance.

Parameters:
instance - the instance whose properties we are concerned with.
Method Detail

getEditableValue

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

getPropertyDescriptors

public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
Specified by:
getPropertyDescriptors in interface org.eclipse.ui.views.properties.IPropertySource
See Also:
IPropertySource.getPropertyDescriptors()

getPropertyValue

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

isPropertySet

public boolean isPropertySet(java.lang.Object id)
There is no default value.

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

resetPropertyValue

public void resetPropertyValue(java.lang.Object id)
Does nothing.

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

setPropertyValue

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