Search code examples
eclipseswtjfacetableviewer

How to use TreeNode in a TableViewer in jface


Inside a TableViewer I want to add Columns which are TreeNodes. How can I implement such type of TableViewer which has columns which expand and collapse.


Solution

  • Why not use a TreeViewer? Here is a small example on how to use a Tree. Using a TreeViewer is very similar to a TableViewer.

    It will look similar to this:

    enter image description here