Merge branch 'release/5.11.0'
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / taxon / TaxonRelationshipDetailElement.java
index d4420fb5e284b3dd84656fe6fc30e290b798d3a4..4f132c67175afeb5828b1b8a790901562ecfb9fb 100644 (file)
@@ -52,6 +52,9 @@ public class TaxonRelationshipDetailElement extends AbstractCdmDetailElement<Tax
 
        private TextWithLabelElement text_appendedPhrase;
 
+    private CheckboxElement checkbox_published;
+
+
        private Taxon taxon;
 
        private TaxonDetailSection taxonElement;
@@ -82,7 +85,12 @@ public class TaxonRelationshipDetailElement extends AbstractCdmDetailElement<Tax
             }else{
                 label = "Sec.";
             }
+            text_appendedPhrase = formFactory.createTextWithLabelElement(
+                    this, "Appended Phrase", taxon.getAppendedPhrase(),
+                    SWT.WRAP);
 
+            checkbox_published = formFactory.createCheckbox(this,
+                    "Published", taxon.isPublish(), style);
             sensuReference = formFactory.createSelectionElement(Reference.class,//getConversationHolder(),
                  formElement, label,
                 taxon.getSec(), EntitySelectionElement.ALL,
@@ -135,8 +143,12 @@ public class TaxonRelationshipDetailElement extends AbstractCdmDetailElement<Tax
             addElement(taxonElement);
 
 
+            text_appendedPhrase = formFactory.createTextWithLabelElement(
+                    this, "Appended Phrase", taxon.getAppendedPhrase(),
+                    SWT.WRAP);
 
-
+            checkbox_published = formFactory.createCheckbox(this,
+                    "Published", taxon.isPublish(), style);
             secReference = formFactory.createSelectionElement(Reference.class,//getConversationHolder(),
                     formElement, "Syn. Sec.",
                     entity.getCitation(), EntitySelectionElement.ALL,
@@ -207,6 +219,10 @@ public class TaxonRelationshipDetailElement extends AbstractCdmDetailElement<Tax
                            getEntity().setType(combo_taxonRelationshipType.getSelection().getType());
                        } else if ( eventSource == combo_misappliedRelationshipType) {
                 getEntity().setType(combo_misappliedRelationshipType.getSelection());
+            } else if (eventSource == text_appendedPhrase) {
+                taxon.setAppendedPhrase(text_appendedPhrase.getText());
+            }  else if (eventSource == checkbox_published) {
+                taxon.setPublish(checkbox_published.getSelection());
             }
                }else{
                        if (eventSource == selection_relatedTaxon){