}
public static TermVocabulary select(String dialogTitle, Shell shell, TermVocabulary voc){
- return select_internal(dialogTitle, shell, Collections.singleton(voc), null);
+ return select_internal(dialogTitle, shell, voc!=null?Collections.singleton(voc):null, null);
}
public static TermVocabulary select(Shell shell, TermVocabulary voc){
- return select_internal("Choose Vocabulary", shell, Collections.singleton(voc), null);
+ return select_internal("Choose Vocabulary", shell, voc!=null?Collections.singleton(voc):null, null);
}
private static TermVocabulary select_internal(String dialogTitle, Shell shell, Set<TermVocabulary> vocabulariesToBeFiltered,