Revision 4d01989b
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/webimport/termimport/GfBioTerminologyImportPresenter.java | ||
---|---|---|
176 | 176 |
} |
177 | 177 |
|
178 | 178 |
private void clearDetails(){ |
179 |
composite.getLblLabel().setText(""); |
|
180 |
composite.getLblUri().setText(""); |
|
181 |
composite.getLblDescription().setText(""); |
|
179 |
composite.getLblLabel().setText(""); //$NON-NLS-1$
|
|
180 |
composite.getLblUri().setText(""); //$NON-NLS-1$
|
|
181 |
composite.getLblDescription().setText(""); //$NON-NLS-1$
|
|
182 | 182 |
composite.getListSynonyms().getList().removeAll(); |
183 | 183 |
} |
184 | 184 |
|
... | ... | |
192 | 192 |
String label = wrapper.getLabel(); |
193 | 193 |
String uri = wrapper.getUri(); |
194 | 194 |
String description = wrapper.getDescription(); |
195 |
composite.getLblLabel().setText(label!=null?label:""); |
|
196 |
composite.getLblUri().setText(uri!=null?uri:""); |
|
197 |
composite.getLblDescription().setText(description!=null?description:""); |
|
195 |
composite.getLblLabel().setText(label!=null?label:""); //$NON-NLS-1$
|
|
196 |
composite.getLblUri().setText(uri!=null?uri:""); //$NON-NLS-1$
|
|
197 |
composite.getLblDescription().setText(description!=null?description:""); //$NON-NLS-1$
|
|
198 | 198 |
if(wrapper.getSynonyms()!=null){ |
199 | 199 |
if(wrapper.getSynonyms().isEmpty()){ |
200 | 200 |
composite.getListSynonyms().getList().removeAll(); |
... | ... | |
219 | 219 |
if(searchString.equals(TXT_SEARCH_DEFAULT)){ |
220 | 220 |
return; |
221 | 221 |
} |
222 |
String terminology = ""; |
|
222 |
if(searchString.length()<4 && composite.getComboTerminologies().getSelection().isEmpty()){ |
|
223 |
MessagingUtils.informationDialog(Messages.GfBioTerminologyImportPresenter_SEARCH_TOO_SHORT_TITLE, Messages.GfBioTerminologyImportPresenter_SEARCH_TOO_SHORT_MESSAGE); |
|
224 |
return; |
|
225 |
} |
|
226 |
String terminology = ""; //$NON-NLS-1$ |
|
223 | 227 |
ISelection selection = composite.getComboTerminologies().getSelection(); |
224 | 228 |
Collection<OntologyTermWrapper> wrapperList = new ArrayList<>(); |
225 | 229 |
if(selection instanceof IStructuredSelection && !selection.isEmpty()){ |
Also available in: Unified diff
ref #7362 Show info when searching with <4 letters