Class VSParticipantEditor
- All Implemented Interfaces:
IThemeListener, IEditedPropControllerOwner<AbstractReference<IPropCnr>, ReferenceString>, IEditedPropertyEntry<AbstractReference<IPropCnr>, ReferenceString>, IEditedPropertyEntryMultiProp<AbstractReference<IPropCnr>, ReferenceString>, IPropertyDefined, IDisposedPart
The VirtualSpace Participant (reference property) editor.
Every change of the reference goes through VSParticipantsHolder.setVirtualSpace(IVSParticipant, VirtualSpace, IComplexOperation), which moves the participant between the VirtualSpaces' participant lists in the same operation, and Un-define through the ordinary property delete, which removes the entry the same way: this editor keeps no list code of its own.
- Author:
- Christopher Mindus
Field Summary
Fields inherited from class ReferencePropEditor
alternateExpansionLevel, alternateSelection, classes, filter, filterClass, image, miGoto, miSelect, SELECT_MESSAGE, selectionRoot, TEXT_MESSAGE, tipFields inherited from class BaseEditor
appUI, combo, control, controller, definedButton, display, editor, focusListener, hasBeenModified, info, more, multipleValueWarningInput, options, parent, propController, shell, text, validator, wasDefinedAtFocusGainedConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionprotected voidcreate()Creates the property editor controls.Gets the user input.protected voidCalled when mouse is double-clicked in the text or combobox.protected voidonDropInput(String ref) Called when a reference is dropped on the label: a VirtualSpace is set as a selection would be, anything else is ignored.voidonMore()Called when the "more..." button is pressed.protected voidsetEditable(boolean on) Overridden to disable the entry field.protected voidsetFocus()Overridden to set focus.protected booleanProvides entry feed-back to label.protected voidsetup()Override to provide user settings.Methods inherited from class ReferencePropEditor
addDropSupport, formatValue, getBaseReferencePath, getCurrentReferenceTarget, getDefaultValue, getLookupPropReference, getToolTipText, getValue, onCreateMenu, onGoto, onList, setLookedUpReference, setToolTipTextMethods inherited from class BaseEditor
assignMaster, beginProcessEvent, canProcessEvents, checkInput, createCCombo, createControls, createGridLayout, createIzMenu, createMoreButton, createMoreIzMenu, createText, dispose, doUndefineIfEmpty, doValueChangeConversion, endProcessEvent, getBaseEditor, getCurrentValue, getCurrentValues, getModifyListener, getNativeToolTip, getOption, getSelectionListener, getSeverity, getShell, getToolTipText2, hasFocus, initialize, isDisposed, isPropReadOnly, onDefine, onDispose, onError, onF4List, onFocusGained, onFocusLost, onReadOnly, onThemeChanged, onUndefined, onUpdate, setColors, setCurrentValue, setInputValue, setInputValueFromProp, showMenu, updateTooltip, validate
Constructor Details
VSParticipantEditor
public VSParticipantEditor()Default constructor called before createControls.
Method Details
setup
protected void setup()Override to provide user settings.- Overrides:
setupin classReferencePropEditor<IPropCnr>
setEditable
protected void setEditable(boolean on) Overridden to disable the entry field.- Overrides:
setEditablein classBaseEditor<AbstractReference<IPropCnr>, ReferenceString>
setFocus
protected void setFocus()Overridden to set focus.- Overrides:
setFocusin classBaseEditor<AbstractReference<IPropCnr>, ReferenceString>
create
protected void create()Creates the property editor controls. Overridden to make entry field read-only and double-click to select.- Overrides:
createin classReferencePropEditor<IPropCnr>
onMore
public void onMore()Called when the "more..." button is pressed. Override to display dialog box.- Overrides:
onMorein classBaseEditor<AbstractReference<IPropCnr>, ReferenceString>
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:
onDoubleClickin classReferencePropEditor<IPropCnr>
setInput
Provides entry feed-back to label.- Overrides:
setInputin classBaseEditor<AbstractReference<IPropCnr>, ReferenceString>- Parameters:
input- The new input, or null for no change.- Returns:
- true for changed, false for no change.
getCurrentInput
Gets the user input.- Specified by:
getCurrentInputin interfaceIEditedPropControllerOwner<AbstractReference<IPropCnr>, ReferenceString>- Overrides:
getCurrentInputin classBaseEditor<AbstractReference<IPropCnr>, ReferenceString>
onDropInput
Called when a reference is dropped on the label: a VirtualSpace is set as a selection would be, anything else is ignored. The default only showed the dropped name and changed nothing.- Overrides:
onDropInputin classReferencePropEditor<IPropCnr>- Parameters:
ref- The dropped reference.