Friday, 15 May 2015

eclipse - Disable selection change in JFace TreeViewer -



eclipse - Disable selection change in JFace TreeViewer -

i have treeviewer in view. whenever press button (say s), viewer selects first item in tree starting letter (say stackoverflow). there way disable behaviour?

thank you.

restricting key events on tree looks promising loose navigating tree construction , expand/collapse on tree node , other functionality.

tree.addkeylistener(new keyadapter() { @override public void keypressed(keyevent e) { e.doit = false; } });

eclipse selection jface treeviewer

No comments:

Post a Comment