final ComboViewer comboViewer = new ComboViewer(parent);
comboViewer.add(new String []{"hallo","hi","moin"});
comboViewer.addSelectionChangedListener(new ISelectionChangedListener() {
private ISelection selection;
@Override
public void selectionChanged(SelectionChangedEvent arg0) {
if(arg0.getSelection().toString().indexOf("[h") == 0){
//Fehlernachricht ausgeben
MessageDialog.openError(getSite().getShell(), "Fehler", "Auswahl darf nicht mit h anfangen");
arg0.getSelectionProvider().setSelection(selection);
}else{
selection = arg0.getSelection();
}
}
});