TreeViewer Selection problem with ColumnViewerEditorActivationStrategy [message #666493] |
Wed, 20 April 2011 11:15  |
Eclipse User |
|
|
|
Hello,
I have a treeviewer in which i'm using cell edition in TreeViewerColumn and when I activate the below code treeviewer.setselection is not working and when i remove the code the selection is working fine.
TreeViewerFocusCellManager focusCellManager = new TreeViewerFocusCellManager(treeViewer, new FocusCellOwnerDrawHighlighter(treeViewer));
ColumnViewerEditorActivationStrategy actSupport = new ColumnViewerEditorActivationStrategy(treeViewer) {
protected boolean isEditorActivationEvent(ColumnViewerEditorActivationEvent event) {
return event.keyCode == SWT.F2;
}
};
TreeViewerEditor.create(treeViewer, focusCellManager, actSupport, ColumnViewerEditor.TABBING_HORIZONTAL | ColumnViewerEditor.TABBING_MOVE_TO_ROW_NEIGHBOR | ColumnViewerEditor.TABBING_VERTICAL | ColumnViewerEditor.KEYBOARD_ACTIVATION);
Plz help
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07815 seconds