Question

I was able to create JFace multi column TreeViewer, with a single content provider. SO it causing same data in all columns.

How can I set multi column with different data or have multiple content provider?

Was it helpful?

Solution

You can't have several content providers in a single viewer. But you can either use ITableLabelProvider which lets text and image depend on the index of the column, or have different label providers for every column using TreeViewerColumn and ColumnLabelProvider.

OTHER TIPS

The program in the link shows all possible Tree viewer related implementations

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top