Package com.iizigo.prop.editor
Class MethodReferencePropEditor
java.lang.Object
com.iizigo.prop.BaseEditor<EditorMethodReference,String>
com.iizigo.prop.editor.MethodReferencePropEditor
- All Implemented Interfaces:
IThemeListener
,IEditedPropControllerOwner<EditorMethodReference,
,String> IEditedPropertyEntry<EditorMethodReference,
,String> IEditedPropertyEntryMultiProp<EditorMethodReference,
,String> IPropertyDefined
,IDisposedPart
The Method Reference property editor consists of a simple entry field.
- Author:
- Christopher Mindus
Field Summary
Fields inherited from class com.iizigo.prop.BaseEditor
appUI, combo, control, controller, definedButton, display, editor, focusListener, hasBeenModified, info, more, multipleValueWarningInput, options, parent, propController, shell, text, validator, wasDefinedAtFocusGained
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionprotected void
Implement interface or annotation.protected void
create()
Creates the property editor controls.protected void
Creates a new Java class.formatValue
(String value) Formats the value for user input as a String.Gets the default defined value to set in the property when defined.Gets a "native" tooltip to use.protected String
Gets the tooltip text to display in the entry fields (not the one for property errors or validator).protected String
Gets the property value for a user input.void
Initializes a newly created property (e.g.protected void
Called when mouse is double-clicked in the text or combobox.void
onMore()
Called when the "more..." button is pressed.protected void
Selects a class from the project (or its classpath), but .java files as parsed sources.Methods inherited from class com.iizigo.prop.BaseEditor
assignMaster, beginProcessEvent, canProcessEvents, checkInput, createCCombo, createControls, createGridLayout, createIzMenu, createMoreButton, createMoreIzMenu, createText, dispose, doUndefineIfEmpty, doValueChangeConversion, endProcessEvent, getBaseEditor, getCurrentInput, getCurrentValue, getCurrentValues, getModifyListener, getOption, getSelectionListener, getSeverity, getShell, getToolTipText2, hasFocus, isDisposed, isPropReadOnly, onDefine, onDispose, onError, onF4List, onFocusGained, onFocusLost, onReadOnly, onThemeChanged, onUndefined, onUpdate, setColors, setCurrentValue, setEditable, setFocus, setInput, setInputValue, setInputValueFromProp, setToolTipText, showMenu, updateTooltip, validate
Constructor Details
MethodReferencePropEditor
public MethodReferencePropEditor()Default constructor called before createControls.
Method Details
initialize
Initializes a newly created property (e.g. a reference property for accepted classes, etc).- Specified by:
initialize
in interfaceIEditedPropControllerOwner<EditorMethodReference,
String> - Overrides:
initialize
in classBaseEditor<EditorMethodReference,
String> - Parameters:
prop
- The newly created orphan property.- Throws:
PropException
- For property errors.
create
protected void create()Creates the property editor controls.- Specified by:
create
in classBaseEditor<EditorMethodReference,
String>
onDoubleClick
Called when mouse is double-clicked in the text or combobox. Overridden to check if Goto reference is enabled, and if so goes there.- Overrides:
onDoubleClick
in classBaseEditor<EditorMethodReference,
String>
createJava
protected void createJava()Creates a new Java class.selectJava
protected void selectJava()Selects a class from the project (or its classpath), but .java files as parsed sources.addAnnotation
protected void addAnnotation()Implement interface or annotation.onMore
public void onMore()Called when the "more..." button is pressed. Override to display dialog box.- Overrides:
onMore
in classBaseEditor<EditorMethodReference,
String>
getToolTipText
Gets the tooltip text to display in the entry fields (not the one for property errors or validator).- Specified by:
getToolTipText
in classBaseEditor<EditorMethodReference,
String>
getNativeToolTip
Gets a "native" tooltip to use.- Overrides:
getNativeToolTip
in classBaseEditor<EditorMethodReference,
String> - Returns:
- null for none, otherwise the IzToolTip instance.
getDefaultValue
Gets the default defined value to set in the property when defined.- Specified by:
getDefaultValue
in interfaceIEditedPropControllerOwner<EditorMethodReference,
String> - Specified by:
getDefaultValue
in classBaseEditor<EditorMethodReference,
String>
getValue
Gets the property value for a user input.- Specified by:
getValue
in classBaseEditor<EditorMethodReference,
String> - Parameters:
input
- The current user input.- Returns:
- The property value for the input, or null to un-define the property.
formatValue
Formats the value for user input as a String.- Specified by:
formatValue
in interfaceIEditedPropControllerOwner<EditorMethodReference,
String> - Specified by:
formatValue
in classBaseEditor<EditorMethodReference,
String> - Parameters:
value
- The value.- Returns:
- The formatted value.