import org.eclipse.jface.wizard.Wizard;
+import eu.etaxonomy.cdm.common.CdmUtils;
import eu.etaxonomy.cdm.model.term.Representation;
import eu.etaxonomy.cdm.model.term.TermBase;
import eu.etaxonomy.taxeditor.ui.translation.TermTranslationWizardPage;
@Override
public boolean performFinish() {
Representation representation = page.getTargetRepresentation();
-
+
if (representation.getLanguage() == null){
return false;
}
- if (!representation.getText().equals("") || !representation.getLabel().equals("") || !representation.getAbbreviatedLabel().equals("")) {
+ if (CdmUtils.isNotBlank(representation.getText())
+ || CdmUtils.isNotBlank(representation.getLabel())
+ || CdmUtils.isNotBlank(representation.getAbbreviatedLabel())
+ || CdmUtils.isNotBlank(representation.getPlural())){
term.addRepresentation(representation);
}