}
private void clearDetails(){
- composite.getLblLabel().setText("");
- composite.getLblUri().setText("");
- composite.getLblDescription().setText("");
+ composite.getLblLabel().setText(""); //$NON-NLS-1$
+ composite.getLblUri().setText(""); //$NON-NLS-1$
+ composite.getLblDescription().setText(""); //$NON-NLS-1$
composite.getListSynonyms().getList().removeAll();
}
String label = wrapper.getLabel();
String uri = wrapper.getUri();
String description = wrapper.getDescription();
- composite.getLblLabel().setText(label!=null?label:"");
- composite.getLblUri().setText(uri!=null?uri:"");
- composite.getLblDescription().setText(description!=null?description:"");
+ composite.getLblLabel().setText(label!=null?label:""); //$NON-NLS-1$
+ composite.getLblUri().setText(uri!=null?uri:""); //$NON-NLS-1$
+ composite.getLblDescription().setText(description!=null?description:""); //$NON-NLS-1$
if(wrapper.getSynonyms()!=null){
if(wrapper.getSynonyms().isEmpty()){
composite.getListSynonyms().getList().removeAll();
if(searchString.equals(TXT_SEARCH_DEFAULT)){
return;
}
- String terminology = "";
+ if(searchString.length()<4 && composite.getComboTerminologies().getSelection().isEmpty()){
+ MessagingUtils.informationDialog(Messages.GfBioTerminologyImportPresenter_SEARCH_TOO_SHORT_TITLE, Messages.GfBioTerminologyImportPresenter_SEARCH_TOO_SHORT_MESSAGE);
+ return;
+ }
+ String terminology = ""; //$NON-NLS-1$
ISelection selection = composite.getComboTerminologies().getSelection();
Collection<OntologyTermWrapper> wrapperList = new ArrayList<>();
if(selection instanceof IStructuredSelection && !selection.isEmpty()){