@Override
                public void widgetSelected(SelectionEvent e)
                {
                    int index = textCombo.getSelectionIndex();
                    if (index < 0) return;

                    Boolean selection = (Boolean) (items == null ? null : (items.get(index))[1]);
                    if (selection != null) {
                        refreshHexOrText(selection);
                    }
                }
Group with text/hex selector and text input
plugins/org.jkiss.dbeaver.ui.editors.hex/src/org/jkiss/dbeaver/ui/editors/binary/dialogs/FindReplaceDialog.java