Class FilePathCellEditor
java.lang.Object
org.eclipse.jface.viewers.CellEditor
org.csstudio.opibuilder.visualparts.AbstractDialogCellEditor
org.csstudio.opibuilder.visualparts.FilePathCellEditor
-
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
ConstructorDescriptionFilePathCellEditor
(Composite parent, AbstractWidgetModel widgetModel, String[] fileExtensions) Creates a new string cell editor parented under the given control. -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
protected void
doSetValue
(Object value) protected void
openDialog
(Shell parentShell, String dialogTitle) Creates and opens the Dialog.protected boolean
Returns, if CellEditor.fireApplyEditorValue() should be called.Methods inherited from class org.csstudio.opibuilder.visualparts.AbstractDialogCellEditor
activate, createControl, doSetFocus
Methods inherited from class org.eclipse.jface.viewers.CellEditor
activate, addListener, addPropertyChangeListener, create, deactivate, deactivate, dependsOnExternalFocusListener, dispose, 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
-
FilePathCellEditor
public FilePathCellEditor(Composite parent, AbstractWidgetModel widgetModel, String[] fileExtensions) Creates a new string cell editor parented under the given control. The cell editor value is a PointList.- Parameters:
parent
- The parent table.widgetModel
- the reference path which doesn't include the file name.fileExtensions
- The accepted file extensions
-
-
Method Details
-
doGetValue
- Specified by:
doGetValue
in classCellEditor
-
doSetValue
- Specified by:
doSetValue
in classCellEditor
-
openDialog
Description copied from class:AbstractDialogCellEditor
Creates and opens the Dialog.- Specified by:
openDialog
in classAbstractDialogCellEditor
- Parameters:
parentShell
- The parent shell for the dialogdialogTitle
- The title for the dialog
-
shouldFireChanges
protected boolean shouldFireChanges()Description copied from class:AbstractDialogCellEditor
Returns, if CellEditor.fireApplyEditorValue() should be called.- Specified by:
shouldFireChanges
in classAbstractDialogCellEditor
- Returns:
- true if CellEditor.fireApplyEditorValue() should be called, false otherwise
-