문제

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?

도움이 되었습니까?

해결책

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.

다른 팁

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

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