Skip to main content



      Home
Home » Eclipse Projects » JFace » ComboViewer not nullable?
ComboViewer not nullable? [message #503889] Wed, 16 December 2009 04:14 Go to next message
Eclipse UserFriend
Dear all!

I'm looking for a way to reset a read only ComboViewer. Once an item was selected I cannot deselect it.

Combo.setSelection(StructuredSelection.EMPTY)


Did not work. Neither all other variations. Even if I delete all items from the Combo, the last selected item is still displayed (though it is not in the selection list any more).

BTW: I use Eclipse RAP. I hope it's not a RAP bug. Did anybody try this in a RCP application? It looks kind of strange to me that there is no method to set a ComboViewer to null.

Thanks for any help

Re: ComboViewer not nullable? [message #504020 is a reply to message #503889] Wed, 16 December 2009 15:33 Go to previous messageGo to next message
Eclipse UserFriend
If what you want is just to reset the selection you can do:
  combo.setText("");
  combo.deselectAll();
Re: ComboViewer not nullable? [message #505307 is a reply to message #504020] Tue, 29 December 2009 08:26 Go to previous message
Eclipse UserFriend
Well I tried this, but it did not work. Sad
Previous Topic:DeferredTreeContentManager and treeItem.getItems()
Next Topic:dialog with checkbox
Goto Forum:
  


Current Time: Wed Nov 05 07:47:06 EST 2025

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

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

Back to the top