org.eclipse.gmt.umlx.editor.property.descriptors
Class IntegerPropertyDescriptor<M>
java.lang.Object
org.eclipse.ui.views.properties.PropertyDescriptor
org.eclipse.ui.views.properties.TextPropertyDescriptor
org.eclipse.gmt.umlx.editor.property.descriptors.IntegerPropertyDescriptor<M>
- All Implemented Interfaces:
- IModelPropertyDescriptor, org.eclipse.ui.views.properties.IPropertyDescriptor
- Direct Known Subclasses:
- EIntPropertyDescriptor, GSheetNodeXPropertyDescriptor, GSheetNodeYPropertyDescriptor
public abstract class IntegerPropertyDescriptor<M>
- extends org.eclipse.ui.views.properties.TextPropertyDescriptor
- implements IModelPropertyDescriptor
Methods inherited from class org.eclipse.ui.views.properties.TextPropertyDescriptor |
createPropertyEditor |
Methods inherited from class org.eclipse.ui.views.properties.PropertyDescriptor |
getCategory, getDescription, getDisplayName, getFilterFlags, getHelpContextIds, getId, getLabelProvider, 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.ui.views.properties.IPropertyDescriptor |
createPropertyEditor, getCategory, getDescription, getDisplayName, getFilterFlags, getHelpContextIds, getId, getLabelProvider, isCompatibleWith |
IntegerPropertyDescriptor
public IntegerPropertyDescriptor(EModelPropertySource<? extends M> propertySource,
java.lang.String displayName)
fromModel
public static java.lang.String fromModel(int i)
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
toModel
public static int toModel(java.lang.Object string)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object