void () { ComboPopup popup = myExpressionEditor.getComboBox().getPopup(); if (popup != null && popup.isVisible()) { Object value = popup.getList().getSelectedValue(); if (value != null) { myExpressionEditor.setExpression((XExpression)value); } } doOKAction(); }