Package com.iizigo.prop.editor
Class ClassReferencePropEditor
java.lang.Object
com.iizigo.prop.BaseEditor<EditorClassReference,String> 
com.iizigo.prop.editor.ClassReferencePropEditor
- All Implemented Interfaces:
- IThemeListener,- IEditedPropControllerOwner<EditorClassReference,,- String> - IEditedPropertyEntry<EditorClassReference,,- String> - IEditedPropertyEntryMultiProp<EditorClassReference,,- String> - IPropertyDefined,- IDisposedPart
The Class Reference property editor consists of a simple entry field.
- Author:
- Christopher Mindus
- Field SummaryFields- 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 SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- protected voidAdd interface.- protected voidAdd interface.- protected void- create()Creates the property editor controls.- protected voidCreates 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 StringGets the tooltip text to display in the entry fields (not the one for property errors or validator).- protected StringGets the property value for a user input.- protected void- gotoJava()Goto Java class definition.- voidInitializes a newly created property (e.g.- protected voidCalled when mouse is double-clicked in the text or combobox.- void- onMore()Called when the "more..." button is pressed, or to resolve the type for tooltip.- protected void- selectJava- (boolean all) Selects a class from the project (or its classpath), but .java files as parsed sources.- void- setCurrentValue- (String value) Sets the current value and overrides it in order to build the tooltip.- 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, setEditable, setFocus, setInput, setInputValue, setInputValueFromProp, setToolTipText, showMenu, updateTooltip, validate
- Field Details- requiredInterfaceThe required interface, or null for none.
 
- Constructor Details- ClassReferencePropEditorpublic ClassReferencePropEditor()Default constructor called before createControls.
 
- Method Details- initializeInitializes a newly created property (e.g. a reference property for accepted classes, etc).- Specified by:
- initializein interface- IEditedPropControllerOwner<EditorClassReference,- String> 
- Overrides:
- initializein class- BaseEditor<EditorClassReference,- String> 
- Parameters:
- prop- The newly created orphan property.
- Throws:
- PropException- For property errors.
 
- createprotected void create()Creates the property editor controls.- Specified by:
- createin class- BaseEditor<EditorClassReference,- String> 
 
- onDoubleClickCalled when mouse is double-clicked in the text or combobox. Overridden to check if Goto reference is enabled, and if so goes there.- Overrides:
- onDoubleClickin class- BaseEditor<EditorClassReference,- String> 
 
- createJavaprotected void createJava()Creates a new Java class.
- selectJavaprotected void selectJava- (boolean all) Selects a class from the project (or its classpath), but .java files as parsed sources.
- addInterfaceprotected void addInterface()Add interface.
- addAnnotationprotected void addAnnotation()Add interface.
- gotoJavaprotected void gotoJava()Goto Java class definition.
- onMorepublic void onMore()Called when the "more..." button is pressed, or to resolve the type for tooltip.- Overrides:
- onMorein class- BaseEditor<EditorClassReference,- String> 
 
- getToolTipTextGets the tooltip text to display in the entry fields (not the one for property errors or validator).- Specified by:
- getToolTipTextin class- BaseEditor<EditorClassReference,- String> 
 
- getNativeToolTipGets a "native" tooltip to use.- Overrides:
- getNativeToolTipin class- BaseEditor<EditorClassReference,- String> 
- Returns:
- null for none, otherwise the IzToolTip instance.
 
- getDefaultValueGets the default defined value to set in the property when defined.- Specified by:
- getDefaultValuein interface- IEditedPropControllerOwner<EditorClassReference,- String> 
- Specified by:
- getDefaultValuein class- BaseEditor<EditorClassReference,- String> 
 
- getValueGets the property value for a user input.- Specified by:
- getValuein class- BaseEditor<EditorClassReference,- String> 
- Parameters:
- input- The current user input.
- Returns:
- The property value for the input, or null to un-define the property.
 
- formatValueFormats the value for user input as a String.- Specified by:
- formatValuein interface- IEditedPropControllerOwner<EditorClassReference,- String> 
- Specified by:
- formatValuein class- BaseEditor<EditorClassReference,- String> 
- Parameters:
- value- The value.
- Returns:
- The formatted value.
 
- setCurrentValueSets the current value and overrides it in order to build the tooltip.- Overrides:
- setCurrentValuein class- BaseEditor<EditorClassReference,- String>