Select a column with expand / collapse buttons in jface TreeViewer

I am looking if it is possible to choose which of the columns org.eclipse.jface.viewers.TreeViewer.TreeViewer shows the expand / collapse buttons.

I have a setup with 3 TreeViewerColumns where the first column has a fixed width and only displays an icon representing the state for this row.

Therefore, I would like the second column to perform expand / collapse functions.

Is it possible somehow?

I searched Google, checked examples, etc., but could not find anything in this area.

+4
source share

Source: https://habr.com/ru/post/1494351/


All Articles