Skip to main content



      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 09:07 Go to next message
Eclipse UserFriend
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 09:07] by Moderator

Re: selection and deselection in treeviewer [message #877077 is a reply to message #875276] Fri, 25 May 2012 17:01 Go to previous message
Eclipse UserFriend
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: Tue Jul 01 14:13:47 EDT 2025

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

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

Back to the top