I am developing an eclipse plugin where I have a NatCombo
(dropdown box) inside the NatTable
. I need to dynamically change the combo box filter dropdown menu. I can set Items to my combo box using natCombo.setItems()
method (where I can add my filtered list of filters).
However I could not find a method that removes items instead, or that empties the previous items in the combo box before I add new items. I can only add indefinitely Items to my combo box drop drown menu.
Is there a method to remove items? Can I implement one? If so how exactly could I?
I don't know your use case and whether you are using one of our default editor implementations or created your own. But there are basically two answers, dependent on your use case:
IComboBoxDataProvider
and explained in our FAQ https://www.eclipse.org/nattable/documentation.php?page=faq