public class TreeViewerEditor extends ColumnViewerEditor
Tree
DEFAULT, KEEP_EDITOR_ON_DOUBLE_CLICK, KEYBOARD_ACTIVATION, TABBING_CYCLE_IN_ROW, TABBING_HORIZONTAL, TABBING_MOVE_TO_ROW_NEIGHBOR, TABBING_VERTICAL
Modifier and Type | Method and Description |
---|---|
static void |
create(TreeViewer viewer,
ColumnViewerEditorActivationStrategy editorActivationStrategy,
int feature)
Create a customized editor whose activation process is customized
|
static void |
create(TreeViewer viewer,
org.eclipse.jface.viewers.SWTFocusCellManager focusCellManager,
ColumnViewerEditorActivationStrategy editorActivationStrategy,
int feature)
Create a customized editor with focusable cells
|
ViewerCell |
getFocusCell() |
protected void |
setEditor(Control w,
Item item,
int fColumnNumber)
Position the editor inside the control
|
protected void |
setLayoutData(CellEditor.LayoutData layoutData)
set the layout data for the editor
|
protected void |
updateFocusCell(ViewerCell focusCell,
ColumnViewerEditorActivationEvent event) |
addEditorActivationListener, getViewer, processTraverseEvent, removeEditorActivationListener
public static void create(TreeViewer viewer, org.eclipse.jface.viewers.SWTFocusCellManager focusCellManager, ColumnViewerEditorActivationStrategy editorActivationStrategy, int feature)
viewer
- the viewer the editor is created forfocusCellManager
- the cell focus manager if one needed else null
editorActivationStrategy
- activation strategy to control if an editor activatedfeature
- bit mask controlling the editor
create(TreeViewer, ColumnViewerEditorActivationStrategy, int)
public static void create(TreeViewer viewer, ColumnViewerEditorActivationStrategy editorActivationStrategy, int feature)
viewer
- the viewer the editor is created foreditorActivationStrategy
- activation strategy to control if an editor activatedfeature
- bit mask controlling the editor
protected void setEditor(Control w, Item item, int fColumnNumber)
ColumnViewerEditor
setEditor
in class ColumnViewerEditor
w
- the editor controlitem
- the item (row) in which the editor is drawn infColumnNumber
- the column number in which the editor is shownprotected void setLayoutData(CellEditor.LayoutData layoutData)
ColumnViewerEditor
setLayoutData
in class ColumnViewerEditor
layoutData
- the layout data used when editor is displayedpublic ViewerCell getFocusCell()
getFocusCell
in class ColumnViewerEditor
null
is
returnedprotected void updateFocusCell(ViewerCell focusCell, ColumnViewerEditorActivationEvent event)
updateFocusCell
in class ColumnViewerEditor
focusCell
- updates the cell with the current input focusevent
- the event requesting to update the focusCell
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.