| [news.eclipse.platform.swt] Re: Invisible root TreeItem? |
|
I am not sure what you mean, but I am not that good
with SWT and a bit rusty with Java itself, however I see no remedy to my
situation from what you said. The fact that there are two ways I can
create a TreeItem like:
new TreeItem( Tree, style )
or
new TreeItem( TreeItem, style )
and that you can't cast Tree to TreeItem is kind of
clunky and I have to have two versions of some of my code to deal with it.
If Tree creates a default root item that's
invisible, then I don't have this problem. Even then, you can still have
multiple "root" items under the default root item, right?
I am sure I am missing something here since no one
seem to complain about this, but I see no clear way around it.
|