Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » How to deselect/unselect a tree item
How to deselect/unselect a tree item [message #504682] Tue, 22 December 2009 06:33 Go to next message
Rahman  is currently offline Rahman Friend
Messages: 8
Registered: December 2009
Junior Member
I need to unselect/de-select the tree item.

Problem:

I have a tree when i can add items to it using toolbar. When the tree item is selected the toolbar add button is disabled. When i add the item it works fine first time. but after adding it selects the tree item and the button is disabled.

How to unselect/de-select tree item/tree.

Thanks for your help.

-Rahman
Re: How to deselect/unselect a tree item [message #504784 is a reply to message #504682] Tue, 22 December 2009 11:34 Go to previous messageGo to next message
Pascal G is currently offline Pascal GFriend
Messages: 157
Registered: July 2009
Senior Member
Rahman wrote:
> I need to unselect/de-select the tree item.
>
> Problem:
>
> I have a tree when i can add items to it using toolbar. When the tree
> item is selected the toolbar add button is disabled. When i add the item
> it works fine first time. but after adding it selects the tree item and
> the button is disabled.
> How to unselect/de-select tree item/tree.
>
> Thanks for your help.
>
> -Rahman

The only way I know of "deselecting" a tree item in SWT is to select
another item.

Hope this helps.
--
Pascal GĂ©linas | Software Developer
*Nu Echo Inc.*
http://www.nuecho.com/ | http://blog.nuecho.com/

*Because performance matters.*
Re: How to deselect/unselect a tree item [message #504854 is a reply to message #504682] Wed, 23 December 2009 05:48 Go to previous message
intothephone intothephone is currently offline intothephone intothephoneFriend
Messages: 14
Registered: July 2009
Junior Member
I think it's not the question of how to deselect/unselect a tree item, it's the question of when that toolbar(click to add items) will be enabled...
Previous Topic:Unable to get columns in a table
Next Topic:Problems running headless junit4 tests with eclipse 3.4.2
Goto Forum:
  


Current Time: Mon Dec 06 12:37:37 GMT 2021

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

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

Back to the top