Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » selection and deselection in treeviewer(Selection Event)
selection and deselection in treeviewer [message #875276] Tue, 22 May 2012 13:07 Go to next message
Sunny          is currently offline Sunny Friend
Messages: 37
Registered: September 2011
Member
When I change a selection in a treeviewer, it appears to have two selection events, one for the deselected item and the other for selected item, in that order.
This is not at all desirable at some times, especially if it involves making server calls. Is there anyway to avoid the first selection event i.e. event from deselection?

Thanks for your help!

[Updated on: Tue, 22 May 2012 13:07]

Report message to a moderator

Re: selection and deselection in treeviewer [message #877077 is a reply to message #875276] Fri, 25 May 2012 21:01 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
SWT's Tree does not send selection events for event deselections, so
they must be originating in the TreeViewer. You should ask this on the
JFace forum since TreeViewer comes from JFace.

Grant


On 5/22/2012 9:07 AM, Missing name Mising name wrote:
> When I change a selection in a treeviewer, it appears to have two
> selection events, one for the deselected item and the other for selected
> item, in that order.
> This is not at all desirable at some times, especially if it involves
> making server calls. Is there anyway to avoid the first selection event
> i.e. event from deselection?
>
> Thanks for your help!
Previous Topic:How to set Scroll bar thumb position programatically
Next Topic:Mac Cocoa:-Z order of canvas inside view is changing on resetPerspective
Goto Forum:
  


Current Time: Sat Sep 19 13:29:03 GMT 2020

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

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

Back to the top