Bug 110877 - [Viewers] Can't add a root item using TreeViewer
Summary: [Viewers] Can't add a root item using TreeViewer
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Boris Bokowski CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2005-09-27 17:42 EDT by Sam Sampson CLA
Modified: 2005-12-01 14:15 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Sampson CLA 2005-09-27 17:42:45 EDT
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.
Comment 1 Boris Bokowski CLA 2005-12-01 14:15:50 EST
To add a root item, call add and pass in the input as the first argument. Closing as worksforme.