Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » how to remove treeitem from tree and then iterator this tree?
how to remove treeitem from tree and then iterator this tree? [message #446029] Tue, 16 November 2004 10:33 Go to next message
Eclipse UserFriend
Originally posted by: guilaida.163.com

hi,all:
i have a tree, a button and a textarea,when i select a treeitem of the
tree and click the button,
what i want is to remove this treeitem from its parent and then iterator
all data carried by those
treeitems left on the tree excepted the removed one.
now i used treeitem.dispose() to let the treeitem is invisible,but i
always get an error when i
immediately iterator the tree:
Unhandled event loop exception
Reason:
Widget is disposed

if i do like this after mouseClicked(MouseEvent e) is invoked,every thing
is ok.

any one can help me?

thanks a lot ahead!

xiao jing
guilaida@163.com
Re: how to remove treeitem from tree and then iterator this tree? [message #446050 is a reply to message #446029] Tue, 16 November 2004 20:45 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Please give a snippet showing what you are trying to do.

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#whatisasnippet

"news://news.eclipse.org" <guilaida@163.com> wrote in message
news:cncl3s$dj5$1@www.eclipse.org...
> hi,all:
> i have a tree, a button and a textarea,when i select a treeitem of the
> tree and click the button,
> what i want is to remove this treeitem from its parent and then iterator
> all data carried by those
> treeitems left on the tree excepted the removed one.
> now i used treeitem.dispose() to let the treeitem is invisible,but i
> always get an error when i
> immediately iterator the tree:
> Unhandled event loop exception
> Reason:
> Widget is disposed
>
> if i do like this after mouseClicked(MouseEvent e) is invoked,every
> thing
> is ok.
>
> any one can help me?
>
> thanks a lot ahead!
>
> xiao jing
> guilaida@163.com
>
>
Previous Topic:FontData question
Next Topic:where to pack TableColumns on a refresh()?
Goto Forum:
  


Current Time: Thu Oct 22 18:59:15 GMT 2020

Powered by FUDForum. Page generated in 0.02018 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top