fix #5660: rename Name Relationship to Name Relationships
authorKatja Luther <k.luther@bgbm.org>
Tue, 1 Nov 2016 09:01:36 +0000 (10:01 +0100)
committerKatja Luther <k.luther@bgbm.org>
Tue, 1 Nov 2016 09:01:36 +0000 (10:01 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NameRelationshipDetailSection.java

index d28f45adc8a89cec3ce84862784a2c6195137460..0227cbcc8d6aa53596e57d0f7395317da9d9d4ce 100644 (file)
@@ -1,9 +1,9 @@
 // $Id$
 /**
 * Copyright (C) 2007 EDIT
 // $Id$
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* European Distributed Institute of Taxonomy
 * http://www.e-taxonomy.eu
 * http://www.e-taxonomy.eu
-* 
+*
 * 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.
 */
 * 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.
 */
@@ -48,7 +48,7 @@ public class NameRelationshipDetailSection extends AbstractEntityCollectionSecti
         */
        public NameRelationshipDetailSection(CdmFormFactory formFactory, ConversationHolder conversation,
                        ICdmFormElement parentElement, int style) {
         */
        public NameRelationshipDetailSection(CdmFormFactory formFactory, ConversationHolder conversation,
                        ICdmFormElement parentElement, int style) {
-               super(formFactory, conversation, parentElement, "Name Relationship", style);
+               super(formFactory, conversation, parentElement, "Name Relationships", style);
        }
 
        /** {@inheritDoc} */
        }
 
        /** {@inheritDoc} */
@@ -60,14 +60,15 @@ public class NameRelationshipDetailSection extends AbstractEntityCollectionSecti
        /** {@inheritDoc} */
        @Override
        public NameRelationship createNewElement() {
        /** {@inheritDoc} */
        @Override
        public NameRelationship createNewElement() {
-               
+
                NameRelationshipWizard wizard = new NameRelationshipWizard(this);
                WizardDialog dialog = new WizardDialog(StoreUtil.getShell(), wizard);
                int status = dialog.open();
                NameRelationshipWizard wizard = new NameRelationshipWizard(this);
                WizardDialog dialog = new WizardDialog(StoreUtil.getShell(), wizard);
                int status = dialog.open();
-               
-               if(status == IStatus.OK)
-                       return wizard.getNameRelationship();
-               
+
+               if(status == IStatus.OK) {
+            return wizard.getNameRelationship();
+        }
+
                return null;
        }
 
                return null;
        }
 
@@ -95,14 +96,15 @@ public class NameRelationshipDetailSection extends AbstractEntityCollectionSecti
        @Override
        public void removeElement(NameRelationship element) {
                getEntity().removeNameRelationship(element);
        @Override
        public void removeElement(NameRelationship element) {
                getEntity().removeNameRelationship(element);
-       }       
-       
+       }
+
        /*
         * (non-Javadoc)
         * @see eu.etaxonomy.taxeditor.section.ITaxonDetailSection#setTaxon(eu.etaxonomy.cdm.model.taxon.TaxonBase)
         */
        /** {@inheritDoc} */
        /*
         * (non-Javadoc)
         * @see eu.etaxonomy.taxeditor.section.ITaxonDetailSection#setTaxon(eu.etaxonomy.cdm.model.taxon.TaxonBase)
         */
        /** {@inheritDoc} */
-       public void setTaxonBase(TaxonBase entity) {
+       @Override
+    public void setTaxonBase(TaxonBase entity) {
                this.taxonBase = entity;
                NonViralName name = (NonViralName) HibernateProxyHelper.deproxy(entity.getName());
                setEntity(name);
                this.taxonBase = entity;
                NonViralName name = (NonViralName) HibernateProxyHelper.deproxy(entity.getName());
                setEntity(name);