Interface IOverridingEditor
-
- All Superinterfaces:
IRefreshableEditor
public interface IOverridingEditor extends IRefreshableEditor
Declares the interface of an overriding editor inConfigurationTableEditorFactorythat can be wrapped into aGUIVariable. Actually, this interface repeats some methods fromGUIVariabledeclaringgetValueAssignment(Object)as public rather than protected.- Author:
- Holger Eichelberger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectgetValue()Returns the value of the givenIDecisionVariableso that it can be used as return value for theEditingSupport.getValue(Object)method.ValuegetValueAssignment(java.lang.Object value)Converts the given object into aValue.java.lang.StringgetValueText()Returns a string representation of the current value.voidrefresh()Refreshes the contents of the editor.
-
-
-
Method Detail
-
getValue
java.lang.Object getValue()
Returns the value of the givenIDecisionVariableso that it can be used as return value for theEditingSupport.getValue(Object)method.- Returns:
- A value as needed by the Eclipse UI.
-
getValueAssignment
Value getValueAssignment(java.lang.Object value) throws ValueDoesNotMatchTypeException
Converts the given object into aValue.- Parameters:
value- An object given by the Eclipse GUI.- Returns:
- A
Valuerepresentation of the object, maybe null. - Throws:
ValueDoesNotMatchTypeException- in case ofvaluecannot be converted to the related data type of the wrappedIDecisionVariable.
-
getValueText
java.lang.String getValueText()
Returns a string representation of the current value. This is used when no cursor is inside the cell (if the user is not editing the variable).- Returns:
- A string representation of the current value or null.
-
refresh
void refresh()
Description copied from interface:IRefreshableEditorRefreshes the contents of the editor.- Specified by:
refreshin interfaceIRefreshableEditor
-
-