I am writing an RCP application in eclipse that contains a combobox, and when any of its elements are selected, a selection event is fired and some random code is fired. The listener looks something like this:
randomComboBox.addSelectionListener(new SelectionListener(){ @Override public void widgetSelected(SelectionEvent e) {
My question is: is it possible to fire an event from code? For example, if I add:
randomComboBox.select(0);
no event is fired. In this case, do I need to write my own listener?
source share