I want to completely hide the 1st column in TreeViewer
. If I hide it with setWidth(0)
then the next visible column gets triangles and paddings. The most silly way is to dispose TreeViewer
and create TableViewer
every time when 1st column is hidden. Is there any reliable way to solve this?
Edited. Illustration:
- The original table with
id
andlabel
columns - The table with hidden
id
column. Width is 1px. Dotted separator is very ugly. - The table with hidden
id
column. Width is 0px. Now 2nd column has reformatted elements.
PS I may successful hide 1st id column with mouse at runtime (no dotted separator and 2nd column look the same). But how do this by code? I tied to read JFace source code, but didn't find any useful public methods.