From: Patrick Plitzner Date: Wed, 25 May 2016 15:21:53 +0000 (+0200) Subject: Fix label issue for classification with no label X-Git-Tag: 4.1.0^2~25 X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/commitdiff_plain/3aeb8b5649df45f8c86318300c5df1d3f964e3d9 Fix label issue for classification with no label --- diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/ClassificationDetailElement.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/ClassificationDetailElement.java index 0a583772d..c929611d6 100644 --- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/ClassificationDetailElement.java +++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/ClassificationDetailElement.java @@ -79,7 +79,7 @@ public class ClassificationDetailElement extends @Override protected void createControls(ICdmFormElement formElement, Classification entity, int style) { - text_treeLabel = formFactory.createTextWithLabelElement(formElement, "Label", entity != null ? entity.getTitleCache() : null, SWT.NULL); + text_treeLabel = formFactory.createTextWithLabelElement(formElement, "Label", entity != null ? entity.getName().getText() : null, SWT.NULL); selection_reference = formFactory.createSelectionElement(Reference.class, getConversationHolder(), formElement, "Reference", entity != null ? entity.getReference() : null, EntitySelectionElement.ALL, SWT.NULL); text_microReference = formFactory.createTextWithLabelElement(formElement, "Reference Detail",