Class TypeCellEditor
- java.lang.Object
-
- org.eclipse.jface.viewers.CellEditor
-
- org.eclipse.jface.viewers.TextCellEditor
-
- org.libreoffice.ide.eclipse.core.gui.TypeCellEditor
-
public class TypeCellEditor extends org.eclipse.jface.viewers.TextCellEditorTable cell editor for UNO types.
-
-
Constructor Summary
Constructors Constructor Description TypeCellEditor(org.eclipse.swt.widgets.Composite pParent, int pTypeMask)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.swt.widgets.ControlcreateControl(org.eclipse.swt.widgets.Composite pParent)protected voidfocusLost()voidincludeSequences(boolean pInclude)Set whether the row should support include auto-completion for sequences.voidincludeSimpleTypes(boolean pInclude)Set whether the row should support include auto-completion for simple UNO types.voidincludeVoid(boolean pInclude)Set whether the row should support include auto-completion for the void type.protected java.lang.ObjectopenDialogBox(org.eclipse.swt.widgets.Composite pParent)Open the type chooser dialog.-
Methods inherited from class org.eclipse.jface.viewers.TextCellEditor
dependsOnExternalFocusListener, doGetValue, doSetFocus, doSetValue, editOccured, getLayoutData, handleDefaultSelection, isCopyEnabled, isCutEnabled, isDeleteEnabled, isPasteEnabled, isSaveAllEnabled, isSelectAllEnabled, keyReleaseOccured, performCopy, performCut, performDelete, performPaste, performSelectAll
-
Methods inherited from class org.eclipse.jface.viewers.CellEditor
activate, activate, addListener, addPropertyChangeListener, create, deactivate, deactivate, dispose, fireApplyEditorValue, fireCancelEditor, fireEditorValueChanged, fireEnablementChanged, getControl, getDoubleClickTimeout, getErrorMessage, getStyle, getValidator, getValue, isActivated, isCorrect, isDirty, isFindEnabled, isRedoEnabled, isUndoEnabled, isValueValid, markDirty, performFind, performRedo, performUndo, removeListener, removePropertyChangeListener, setErrorMessage, setFocus, setStyle, setValidator, setValue, setValueValid, valueChanged
-
-
-
-
Constructor Detail
-
TypeCellEditor
public TypeCellEditor(org.eclipse.swt.widgets.Composite pParent, int pTypeMask)Constructor.The types mask is an integer from 0 to 2048-1. The type mask can be obtained by bit-OR of the types constants defined in
InternalUnoTypeclass.- Parameters:
pParent- the parent composite.pTypeMask- the types to show.
-
-
Method Detail
-
includeSequences
public void includeSequences(boolean pInclude)
Set whether the row should support include auto-completion for sequences. Sequences aren't included in the auto-completion by default.- Parameters:
pInclude-trueif the row can auto-complete sequences
-
includeSimpleTypes
public void includeSimpleTypes(boolean pInclude)
Set whether the row should support include auto-completion for simple UNO types. If the simple types are not included in the auto-completion, the void type isn't included too. Simple types aren't included in the auto-completion by default.- Parameters:
pInclude-trueif the row can auto-complete sequences- See Also:
to include/exclude the void type
-
includeVoid
public void includeVoid(boolean pInclude)
Set whether the row should support include auto-completion for the void type. The void type is included in the auto-completion by default as long as the simple types are included.- Parameters:
pInclude-trueif the row can auto-complete sequences- See Also:
for more precisions on the inclusion of the void type dependence on the other simple types inclusion.
-
openDialogBox
protected java.lang.Object openDialogBox(org.eclipse.swt.widgets.Composite pParent)
Open the type chooser dialog.- Parameters:
pParent- the parent composite- Returns:
- the chosen type.
-
focusLost
protected void focusLost()
- Overrides:
focusLostin classorg.eclipse.jface.viewers.CellEditor
-
createControl
protected org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite pParent)
- Overrides:
createControlin classorg.eclipse.jface.viewers.TextCellEditor
-
-