com.aptana.ide.editors.views.outline.propertyManager
Class EditableProperty

java.lang.Object
  extended by com.aptana.ide.editors.views.outline.propertyManager.ReadableProperty
      extended by com.aptana.ide.editors.views.outline.propertyManager.EditableProperty
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
EditableComboProperty, EditableDirectoryProperty, EditableFloatProperty, EditableIntegerProperty

public class EditableProperty
extends ReadableProperty

Author:
Dan
See Also:
Serialized Form

Field Summary
protected  org.eclipse.jface.viewers.ICellEditorValidator validator
          validator
 
Fields inherited from class com.aptana.ide.editors.views.outline.propertyManager.ReadableProperty
defaultValue, value
 
Constructor Summary
EditableProperty(java.lang.String ID, java.lang.String name)
           
 
Method Summary
 org.eclipse.ui.views.properties.PropertyDescriptor getCustomPropertyDescriptor()
          This method can be overridden by suclasses.
 org.eclipse.jface.viewers.ICellEditorValidator getValidator()
          getValidator
 void setUnderlyingValue(java.lang.Object newValue)
          Sets the value of the EditableProperty and fires the PropertyChange event WARNING: this setValue is designed to work with the PropertiesView.
 void setValidator(org.eclipse.jface.viewers.ICellEditorValidator validator)
          setValidator
 void setValue(java.lang.Object newValue)
          setValue
 
Methods inherited from class com.aptana.ide.editors.views.outline.propertyManager.ReadableProperty
addPropertyChangeListener, getDefaultValue, getID, getName, getPropertyDescriptor, getSubPropertyManager, getUnderlyingDefaultValue, getUnderlyingValue, getValue, hasDefaultValue, hasDynamicPropertyDescriptor, hasSubProperties, hasValue, notifyPropertyChangeListeners, removePropertyChangeListener, setCategory, setDefaultValue, setLabelProvider, setSubPropertyManager, setUnderlyingDefaultValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

validator

protected org.eclipse.jface.viewers.ICellEditorValidator validator
validator

Constructor Detail

EditableProperty

public EditableProperty(java.lang.String ID,
                        java.lang.String name)
Parameters:
ID - The ID of the EditableProperty, usually Class.PropertyName
name - The text to be shown to the user
Method Detail

setUnderlyingValue

public void setUnderlyingValue(java.lang.Object newValue)
Sets the value of the EditableProperty and fires the PropertyChange event WARNING: this setValue is designed to work with the PropertiesView. Therefore, the EditableComboProperty expects Integer indexes as new values

Overrides:
setUnderlyingValue in class ReadableProperty
Parameters:
newValue - The new PropertyValue

setValue

public void setValue(java.lang.Object newValue)
Description copied from class: ReadableProperty
setValue

Overrides:
setValue in class ReadableProperty
See Also:
ReadableProperty.setValue(java.lang.Object)

getValidator

public org.eclipse.jface.viewers.ICellEditorValidator getValidator()
getValidator

Returns:
ICellEditorValidator

setValidator

public void setValidator(org.eclipse.jface.viewers.ICellEditorValidator validator)
setValidator

Parameters:
validator -

getCustomPropertyDescriptor

public org.eclipse.ui.views.properties.PropertyDescriptor getCustomPropertyDescriptor()
Description copied from class: ReadableProperty
This method can be overridden by suclasses. The default implementation returns a read-only PropertyDescriptor.

Overrides:
getCustomPropertyDescriptor in class ReadableProperty
Returns:
the property descriptor to be used for this property
See Also:
ReadableProperty.getCustomPropertyDescriptor()