Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » ComboViewer not nullable?
ComboViewer not nullable? [message #503889] Wed, 16 December 2009 09:14 Go to next message
habakuk  is currently offline habakuk Friend
Messages: 32
Registered: October 2009
Member
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 20:33 Go to previous messageGo to next message
Wirianto Djunaidi is currently offline Wirianto DjunaidiFriend
Messages: 8
Registered: July 2009
Junior Member
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 13:26 Go to previous message
habakuk  is currently offline habakuk Friend
Messages: 32
Registered: October 2009
Member
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: Thu Apr 25 09:32:04 GMT 2024

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

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

Back to the top