Community
Participate
Working Groups
Build Identifier: 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 deselected 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. Reproducible: Always
I am pretty sure this is the default and expected behaviour when using single select. Moving to platform UI for comment. I expect that the best solution would be to use multi select and override the selection behaviour to deselect everything except the one item being clicked on.
I'm pretty sure this is dictated by the OS.
(In reply to comment #2) > I'm pretty sure this is dictated by the OS. Odd that MULTI select style allows 0-many selections and SINGLE select style allows exactly 1 selection, but not 0. Interesting.
You guys can close this if it is not something that precipitates a need for change. Thanks for your time. -Josh
Platform behaviour. Closing as Wont fix. You can see this behaviour on Windows Explorer (try on My network place, where rename is not enabled)