org.eclipse.gmt.umlx.editor.property.descriptors
Class ComboPropertyDescriptor<M>

java.lang.Object
  extended by org.eclipse.ui.views.properties.PropertyDescriptor
      extended by org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor
          extended by org.eclipse.gmt.umlx.editor.property.descriptors.ComboPropertyDescriptor<M>
All Implemented Interfaces:
IModelPropertyDescriptor, org.eclipse.ui.views.properties.IPropertyDescriptor
Direct Known Subclasses:
BooleanPropertyDescriptor, EnumeratorPropertyDescriptor

public abstract class ComboPropertyDescriptor<M>
extends org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor
implements IModelPropertyDescriptor


Constructor Summary
ComboPropertyDescriptor(ModelPropertySource<? extends M> propertySource, java.lang.String displayName, java.lang.String[] labels)
           
 
Method Summary
 M getModel()
           
 IModelPropertySource2<? extends M> getSource()
           
 boolean isIdentity()
           
 boolean isResettable()
          Return true if property may be reset to no-value.
 boolean isSet()
          Return true if property has a value.
 boolean isSettable()
          Return true if property may be set to some changed value.
 boolean isVolatile()
           
 void resetProperty()
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.ui.views.properties.ComboBoxPropertyDescriptor
createPropertyEditor, getLabelProvider
 
Methods inherited from class org.eclipse.ui.views.properties.PropertyDescriptor
getCategory, getDescription, getDisplayName, getFilterFlags, getHelpContextIds, getId, isCompatibleWith, isLabelProviderSet, setAlwaysIncompatible, setCategory, setDescription, setFilterFlags, setHelpContextIds, setLabelProvider, setValidator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.property.IModelPropertyDescriptor
getProperty, setProperty
 
Methods inherited from interface org.eclipse.ui.views.properties.IPropertyDescriptor
createPropertyEditor, getCategory, getDescription, getDisplayName, getFilterFlags, getHelpContextIds, getId, getLabelProvider, isCompatibleWith
 

Constructor Detail

ComboPropertyDescriptor

public ComboPropertyDescriptor(ModelPropertySource<? extends M> propertySource,
                               java.lang.String displayName,
                               java.lang.String[] labels)
Method Detail

getModel

public M getModel()
Specified by:
getModel in interface IModelPropertyDescriptor

getSource

public IModelPropertySource2<? extends M> getSource()
Specified by:
getSource in interface IModelPropertyDescriptor

isIdentity

public boolean isIdentity()
Specified by:
isIdentity in interface IModelPropertyDescriptor

isResettable

public boolean isResettable()
Description copied from interface: IModelPropertyDescriptor
Return true if property may be reset to no-value.

Specified by:
isResettable in interface IModelPropertyDescriptor
Returns:
true if no-value allowed

isSet

public boolean isSet()
Description copied from interface: IModelPropertyDescriptor
Return true if property has a value.

Specified by:
isSet in interface IModelPropertyDescriptor
Returns:
true if value exists

isSettable

public boolean isSettable()
Description copied from interface: IModelPropertyDescriptor
Return true if property may be set to some changed value.

Specified by:
isSettable in interface IModelPropertyDescriptor
Returns:
true if value may be changed

isVolatile

public boolean isVolatile()
Specified by:
isVolatile in interface IModelPropertyDescriptor

resetProperty

public void resetProperty()
Specified by:
resetProperty in interface IModelPropertyDescriptor

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object