Class AbstractDialogCellEditor
java.lang.Object
org.eclipse.jface.viewers.CellEditor
org.csstudio.opibuilder.visualparts.AbstractDialogCellEditor
- Direct Known Subclasses:
ActionsCellEditor
,ColorMapCellEditor
,ComplexDataCellEditor
,FilePathCellDialogEditorWithFilter
,FilePathCellEditor
,JavaScriptCellEditor
,MacrosCellEditor
,MultiLineTextCellEditor
,OPIColorCellEditor
,OPIFontCellEditor
,PointListCellEditor
,PythonScriptCellEditor
,RGBColorCellEditor
,RulesInputCellEditor
,ScriptsInputCellEditor
,StringListCellEditor
,StringMapCellEditor
,StringTableCellEditor
An abstract cell editor, which values should be edited by a custom Dialog.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jface.viewers.CellEditor
CellEditor.LayoutData
-
Field Summary
Fields inherited from class org.eclipse.jface.viewers.CellEditor
COPY, CUT, DELETE, FIND, PASTE, REDO, SELECT_ALL, UNDO
-
Constructor Summary
ConstructorDescriptionAbstractDialogCellEditor
(Composite parent, String title) Creates a new string cell editor parented under the given control. -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
protected final Control
createControl
(Composite parent) protected void
protected abstract void
openDialog
(Shell parentShell, String dialogTitle) Creates and opens the Dialog.protected abstract boolean
Returns, if CellEditor.fireApplyEditorValue() should be called.Methods inherited from class org.eclipse.jface.viewers.CellEditor
activate, addListener, addPropertyChangeListener, create, deactivate, deactivate, dependsOnExternalFocusListener, dispose, doGetValue, doSetValue, fireApplyEditorValue, fireCancelEditor, fireEditorValueChanged, fireEnablementChanged, focusLost, getControl, getDoubleClickTimeout, getErrorMessage, getLayoutData, getStyle, getValidator, getValue, isActivated, isCopyEnabled, isCorrect, isCutEnabled, isDeleteEnabled, isDirty, isFindEnabled, isPasteEnabled, isRedoEnabled, isSelectAllEnabled, isUndoEnabled, isValueValid, keyReleaseOccured, markDirty, performCopy, performCut, performDelete, performFind, performPaste, performRedo, performSelectAll, performUndo, removeListener, removePropertyChangeListener, setErrorMessage, setFocus, setStyle, setValidator, setValue, setValueValid, valueChanged
-
Constructor Details
-
AbstractDialogCellEditor
Creates a new string cell editor parented under the given control. The cell editor value is a Map of Strings.- Parameters:
parent
- The parent table.title
- The title for this CellEditor
-
-
Method Details
-
activate
public void activate()- Overrides:
activate
in classCellEditor
-
openDialog
Creates and opens the Dialog.- Parameters:
parentShell
- The parent shell for the dialogdialogTitle
- The title for the dialog
-
shouldFireChanges
protected abstract boolean shouldFireChanges()Returns, if CellEditor.fireApplyEditorValue() should be called.- Returns:
- true if CellEditor.fireApplyEditorValue() should be called, false otherwise
-
createControl
- Specified by:
createControl
in classCellEditor
-
doSetFocus
protected void doSetFocus()- Specified by:
doSetFocus
in classCellEditor
-