X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/blobdiff_plain/0645911c353ba25e121a675469155712b207b4de..2c78f50b7050c5b4a1bda191a3e4aeb6b7441d4b:/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/TextTypeDesignationElement.java diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/TextTypeDesignationElement.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/TextTypeDesignationElement.java index 4c97c785c..f5b88c580 100644 --- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/TextTypeDesignationElement.java +++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/TextTypeDesignationElement.java @@ -6,7 +6,6 @@ * The contents of this file are subject to the Mozilla Public License Version 1.1 * See LICENSE.TXT at the top of this package for the full license terms. */ - package eu.etaxonomy.taxeditor.ui.section.name; import org.eclipse.jface.util.PropertyChangeEvent; @@ -21,13 +20,11 @@ import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; import eu.etaxonomy.taxeditor.ui.element.MultilanguageTextElement; /** - * * @author pplitzner * @since May 15, 2019 - * */ -public class TextTypeDesignationElement extends - AbstractTypeDesignationElement { +public class TextTypeDesignationElement + extends AbstractTypeDesignationElement { private MultilanguageTextElement multilanguageTextElement; private CheckboxElement checkIsVerbatim; @@ -40,9 +37,12 @@ public class TextTypeDesignationElement extends @Override public void createControls(ICdmFormElement formElement, int style) { - multilanguageTextElement = formFactory.createMultiLanguageTextElement(this, null, entity.getText(), 200, SWT.WRAP); + multilanguageTextElement = formFactory.createMultiLanguageTextElement(this, null, entity.getText(), 100, SWT.WRAP); checkIsVerbatim = formFactory.createCheckbox(formElement, "Is Verbatim", getEntity().isVerbatim(), style); - super.createControls(formElement, style); + super.createControls(formElement, style); + if (entity != null){ + setEntity(entity); + } } @Override @@ -57,6 +57,9 @@ public class TextTypeDesignationElement extends @Override public void setEntity(TextualTypeDesignation entity) { super.setEntity(entity); + if (checkbox_notDesignated != null){ + removeNotDesignatedControls(); + } } @Override @@ -66,4 +69,4 @@ public class TextTypeDesignationElement extends getEntity().setVerbatim(checkIsVerbatim.getSelection()); } } -} +} \ No newline at end of file