Project

General

Profile

« Previous | Next » 

Revision fe54edf5

Added by Patrick Plitzner over 3 years ago

Clear Gfbio term synonym list when selection changes

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/webimport/termimport/GfBioTerminologyImportPresenter.java
195 195
            composite.getLblLabel().setText(label!=null?label:""); //$NON-NLS-1$
196 196
            composite.getLblUri().setText(uri!=null?uri:""); //$NON-NLS-1$
197 197
            composite.getLblDescription().setText(description!=null?description:""); //$NON-NLS-1$
198
            composite.getListSynonyms().getList().removeAll();
198 199
            if(wrapper.getSynonyms()!=null){
199
                if(wrapper.getSynonyms().isEmpty()){
200
                    composite.getListSynonyms().getList().removeAll();
201
                }
202
                else{
203
                    wrapper.getSynonyms().forEach(syn->composite.getListSynonyms().add(syn));
204
                }
200
                wrapper.getSynonyms().forEach(syn->composite.getListSynonyms().add(syn));
205 201
            }
206 202
        }
207 203
    }

Also available in: Unified diff