문제

I have a SWT Tree, and I want to set the cursor to a particular cell of that SWT Tree. I have access of TreeViewer.

The screenshot below shows the cursor at column 1. I did it manually, but I want to do it programatically.

enter image description here

도움이 되었습니까?

해결책

Have a look at TreeViewer#editElement(Object element, int column).

Where element is the model element and column the column in your table.

The Javadoc states:

Starts editing the given element at the given column index.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top