[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Using ColumnLabelProvider with multi-column TreeViewers

Tom Schindl wrote:

Berk Birand schrieb:
treeViewer.setContentProvider(new ItemTreeContentProvider());
treeViewer.setLabelProvider(new ItemTreeLabelProvider());

Remove this line! You don't have to set a LabelProvider on the TreeViewer anymore with 3.3 API.

If you are using a SWT.CHECK you should by the way use a CheckboxTreeViewer.

You can of course checkout the snippets page where you'll find many


[1] http://wiki.eclipse.org/JFaceSnippets

Thanks a lot. I guess the problem was the LabelProvider that I had up there. Once I removed it, the items appeared in the list. I also modified the cde to use CheckboxTreeViewer.


Cheers, Berk