[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: Invisible root TreeItem?

Joel Chen wrote:

Is is possible to create a TreeItem that's invisble to serve as the root item? I found myself end up with a bunch of functions with identical body but one takes Tree and another takes TreeItem in its parameters. I could get around this by just creating a rootTreeItem but now I lost some space in the left margin in my tree display.

I don't know your design, so I could be completely wrong, but it might be a design flaw on your end. Maybe those doubled functions should really be working on a TreeItem[] instead of a Tree or a TreeItem.


--
Stefan Zeiger - Developer of Novocode Application Framework
Build SWT-based MVC GUIs via XML: http://www.novocode.com/naf/