Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » jFace Viewer not allowing deselect using ctrl click
jFace Viewer not allowing deselect using ctrl click [message #557022] Fri, 03 September 2010 12:19 Go to next message
Eclipse UserFriend
Greetings:

I have a jFace TreeViewer that I have given a style bit of SWT.SINGLE. It will not allow a tree element to be deslected using ctrl click on the selected element.

I did find that deselect works if the style bit is set to SWT.MULTI

In my case I need SINGLE select only, with the ability to deselect an element, putting the tree in a no selection state.

I am using eclipse plugin development with eclipse 3.6

Any thoughts??

Thanks for your time.
Re: jFace Viewer not allowing deselect using ctrl click [message #557333 is a reply to message #557022] Mon, 06 September 2010 15:30 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I think this is the default behavior of the platform.
However, you can override this default behavior and make the deselection work for SINGLE tree.
Here is an old thread on how to make deselection work by clicking outside the TreeItems --> http://dev.eclipse.org/newslists/news.eclipse.platform.swt/m sg45356.html
Re: jFace Viewer not allowing deselect using ctrl click [message #557466 is a reply to message #557333] Tue, 07 September 2010 10:17 Go to previous message
Eclipse UserFriend
Thanks,

That's a good work around. I can make that work for me.

-Josh
Previous Topic:JavaDocs
Next Topic:Copy and paste problems in ToolBar Text widget
Goto Forum:
  


Current Time: Thu Jul 03 11:03:26 EDT 2025

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

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

Back to the top