|
Re: Removing individual TreeItems from a Tree [message #454177 is a reply to message #454174] |
Mon, 18 April 2005 20:07 |
Eclipse User |
|
|
|
Originally posted by: doug-list.threepenny.net
dispose() is correct and available now so I don't think they'll be
adding a remove(index).
Doug
Greg Hilton wrote:
> I see that support has been added in 3.1M6 for indexing TreeItems:
>
> Tree supports indices
> New API has been added so that items in a Tree can be referenced by index.
> The index is relative to the immediate parent which for top level nodes is
> the Tree and for sub-nodes is the parent TreeItem. The new API includes
> Tree/TreeItem.indexOf(TreeItem) and Tree/TreeItem.getItem(index). In
> addition, you can remove the children of a tree item using
> TreeItem.removeAll().
>
> Does anyone know if there are plans to add remove(index) to remove a single
> TreeItem? Or is this accomplished through something like
> TreeItem.dispose()?
>
> Thanks,
> Greg
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03152 seconds