Community
Participate
Working Groups
TreeViewer has two add methods inherited from AbstractTreeViewer. Neither allows you to add an item with a null parent, i.e. a root item. The only way to add root items is through the content provider, which is not always ideal.
To add a root item, call add and pass in the input as the first argument. Closing as worksforme.