cleanup
authorAndreas Müller <a.mueller@bgbm.org>
Fri, 22 Jan 2021 22:19:33 +0000 (23:19 +0100)
committerAndreas Müller <a.mueller@bgbm.org>
Sat, 23 Jan 2021 00:55:11 +0000 (01:55 +0100)
23 files changed:
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/AgentSelectionDialog.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/NomenclaturalAuthorSelectionDialog.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/NomenclaturalPersonAuthorSelectionDialog.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/TeamOrPersonBaseSelectionDialog.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/AbstractFormSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/CdmFormFactory.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/DateDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/mvc/AbstractCdmComposite.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/mvc/element/DateElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/AbstractCdmDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/AbstractEntityCollectionElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/AbstractEntityCollectionSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/agent/TeamMemberElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/agent/TeamMemberSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/ModifierElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/detail/AbstractDetailedDescriptionDetailElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/media/MediaMetaElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/AuthorshipDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/dna/AbstractUnboundEntityCollectionSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/dna/SampleDesignationTextDetailElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/dna/SequenceReferenceCollectionDetailElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/reference/ReferenceDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/reference/ReferenceWizardPage.java

index 30ce775e7f79dea94c786f47614e3291318f5c1a..1572d222b38d911a4e3e5171dd1609ed2da2efd2 100644 (file)
@@ -29,8 +29,8 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
  * @author n.hoffmann
  * @created Sep 10, 2009
  */
-public class AgentSelectionDialog<T extends AgentBase> extends
-               AbstractFilteredCdmResourceSelectionDialog {
+public class AgentSelectionDialog<T extends AgentBase>
+        extends AbstractFilteredCdmResourceSelectionDialog<T> {
 
        protected static final String PERSON = "New Person";
        protected static final String TEAM = "New Team";
@@ -45,11 +45,11 @@ public class AgentSelectionDialog<T extends AgentBase> extends
         * @param entity a {@link eu.etaxonomy.cdm.model.agent.AgentBase} object.
         * @return a {@link eu.etaxonomy.cdm.model.agent.AgentBase} object.
         */
-       public static AgentBase select(Shell shell, //ConversationHolder conversation,
-               AgentBase entity, boolean selectTeamMember) {
-               AgentSelectionDialog dialog = new AgentSelectionDialog(shell, //conversation,
+       public static <S extends AgentBase> S select(Shell shell,
+               S entity, boolean selectTeamMember) {
+               AgentSelectionDialog<S> dialog = new AgentSelectionDialog<>(shell,
                                "Choose Agent", false, AgentSelectionDialog.class.getCanonicalName(), entity, selectTeamMember);
-               return (AgentBase) getSelectionFromDialog(dialog);
+               return getSelectionFromDialog(dialog);
        }
 
        /**
@@ -63,16 +63,15 @@ public class AgentSelectionDialog<T extends AgentBase> extends
         * @param settings a {@link java.lang.String} object.
         */
        protected AgentSelectionDialog(Shell shell,
-               String title, boolean multi, String settings, AgentBase agent, boolean selectTeamMember) {
-               super(shell,
-                       title, multi, settings, agent);
+               String title, boolean multi, String settings, T agent, boolean selectTeamMember) {
+               super(shell, title, multi, settings, agent);
                this.selectTeamMember = selectTeamMember;
        }
 
        public class DetailsLabelProvider extends LabelProvider {
                @Override
         public String getText(Object element) {
-                   AgentBase agent = (AgentBase) getCdmObjectByUuid(((UuidAndTitleCache<AgentBase>) element).getUuid());
+                   T agent = getCdmObjectByUuid(((UuidAndTitleCache<AgentBase>) element).getUuid());
                        if (agent instanceof INomenclaturalAuthor) {
                                return "Nomenclatural title: '" + ((INomenclaturalAuthor) agent).getNomenclaturalTitle() + "'";
                        } else {
@@ -82,8 +81,8 @@ public class AgentSelectionDialog<T extends AgentBase> extends
        }
 
        @Override
-       protected AgentBase getPersistentObject(UUID cdmUuid) {
-               return CdmStore.getService(IAgentService.class).load(cdmUuid);
+       protected T getPersistentObject(UUID cdmUuid) {
+               return (T)CdmStore.getService(IAgentService.class).load(cdmUuid);
        }
 
        @Override
@@ -105,7 +104,6 @@ public class AgentSelectionDialog<T extends AgentBase> extends
                if (this.selectTeamMember){
                    result = new String[1];
                    result[0] = PERSON;
-
                }else{
                    result = new String[2];
             result[0] = PERSON;
@@ -130,6 +128,7 @@ public class AgentSelectionDialog<T extends AgentBase> extends
 
     @Override
     protected void callService(String pattern) {
-        model = CdmStore.getService(IAgentService.class).getUuidAndTitleCache(limitOfInitialElements, pattern);
+        Class<T> clazz = (Class)AgentBase.class;
+        model = CdmStore.getService(IAgentService.class).getUuidAndTitleCache(clazz, limitOfInitialElements, pattern);
     }
 }
\ No newline at end of file
index 10496ea74bdbde4dcaaabcd56717617403ba69ae..fef72320dcc71c52b1caec3cb4f965490b8e7ba8 100644 (file)
@@ -10,6 +10,7 @@ package eu.etaxonomy.taxeditor.ui.dialog.selection;
 
 import java.text.Collator;
 import java.util.Comparator;
+import java.util.List;
 
 import org.eclipse.jface.viewers.ILabelProvider;
 import org.eclipse.jface.viewers.LabelProvider;
@@ -32,7 +33,7 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
  */
 public class NomenclaturalAuthorSelectionDialog extends TeamOrPersonBaseSelectionDialog {
 
-    protected NomenclaturalAuthorSelectionDialog(Shell shell, //ConversationHolder conversation,
+    protected NomenclaturalAuthorSelectionDialog(Shell shell,
             String title,
             boolean multi, String settings, TeamOrPersonBase<?> agent, boolean teamMemberSelection) {
         super(shell, title, multi, settings, agent, teamMemberSelection);
@@ -41,7 +42,7 @@ public class NomenclaturalAuthorSelectionDialog extends TeamOrPersonBaseSelectio
 
     @Override
     protected void callService(String pattern) {
-        model = CdmStore.getService(IAgentService.class).getUuidAndAbbrevTitleCache(TeamOrPersonBase.class, limitOfInitialElements, pattern);
+        model = (List)CdmStore.getService(IAgentService.class).getUuidAndAbbrevTitleCache(TeamOrPersonBase.class, limitOfInitialElements, pattern);
     }
 
     @Override
@@ -74,7 +75,7 @@ public class NomenclaturalAuthorSelectionDialog extends TeamOrPersonBaseSelectio
             TeamOrPersonBase<?> entity, boolean teamMemberSelection) {
         NomenclaturalAuthorSelectionDialog dialog = new NomenclaturalAuthorSelectionDialog(shell, //conversation,
                 "Choose Agent", false, NomenclaturalAuthorSelectionDialog.class.getCanonicalName(), entity, teamMemberSelection);
-        return (TeamOrPersonBase<?>)getSelectionFromDialog(dialog);
+        return getSelectionFromDialog(dialog);
     }
 
     @Override
@@ -108,11 +109,11 @@ public class NomenclaturalAuthorSelectionDialog extends TeamOrPersonBaseSelectio
        }
 
        @Override
-       protected Comparator<UuidAndTitleCache<?>> getItemsComparator() {
-               return new Comparator<UuidAndTitleCache<?>>() {
+       protected Comparator<UuidAndTitleCache<TeamOrPersonBase<?>>> getItemsComparator() {
+               return new Comparator<UuidAndTitleCache<TeamOrPersonBase<?>>>() {
                        @Override
-                       public int compare(UuidAndTitleCache<?> entity1,
-                                       UuidAndTitleCache<?> entity2) {
+                       public int compare(UuidAndTitleCache<TeamOrPersonBase<?>> entity1,
+                                       UuidAndTitleCache<TeamOrPersonBase<?>> entity2) {
 
                            if (entity1.getUuid().equals(entity2.getUuid())){
                                return 0;
@@ -126,7 +127,6 @@ public class NomenclaturalAuthorSelectionDialog extends TeamOrPersonBaseSelectio
                                        compareString1 += entity1.getTitleCache();
                                }
 
-
                                String compareString2 = "";
                                if (entity2.getAbbrevTitleCache() != null){
                                        compareString2 = entity2.getAbbrevTitleCache();
index 81347bb6de26d9deca7e1251029c5765f7faae1e..af3c255f152bce2dc3c564c3ea0f725c77da1c4d 100644 (file)
@@ -8,6 +8,8 @@
 */
 package eu.etaxonomy.taxeditor.ui.dialog.selection;
 
+import java.util.List;
+
 import org.eclipse.swt.widgets.Shell;
 
 import eu.etaxonomy.cdm.api.service.IAgentService;
@@ -51,12 +53,12 @@ public class NomenclaturalPersonAuthorSelectionDialog extends NomenclaturalAutho
             TeamOrPersonBase entity, boolean teamMemberSelection) {
         NomenclaturalPersonAuthorSelectionDialog dialog = new NomenclaturalPersonAuthorSelectionDialog(shell, //conversation,
                 "Choose Agent", false, NomenclaturalAuthorSelectionDialog.class.getCanonicalName(), entity,teamMemberSelection);
-        return (TeamOrPersonBase)getSelectionFromDialog(dialog);
+        return getSelectionFromDialog(dialog);
     }
 
     @Override
     protected void callService(String pattern) {
-        model = CdmStore.getService(IAgentService.class).getUuidAndAbbrevTitleCache(Person.class, limitOfInitialElements, pattern);
+        model = (List)CdmStore.getService(IAgentService.class).getUuidAndAbbrevTitleCache(Person.class, limitOfInitialElements, pattern);
     }
 
 }
index 3755f401ab8353a2e6c0151f7136d1e583c9df2b..7619c4ef59f8976f4433476623a83a77325f9c7b 100755 (executable)
@@ -8,6 +8,8 @@
 */
 package eu.etaxonomy.taxeditor.ui.dialog.selection;
 
+import java.util.List;
+
 import org.eclipse.swt.widgets.Shell;
 
 import eu.etaxonomy.cdm.api.service.IAgentService;
@@ -40,15 +42,16 @@ public class TeamOrPersonBaseSelectionDialog
             TeamOrPersonBase<?> entity, boolean selectTeamMember) {
         TeamOrPersonBaseSelectionDialog dialog = new TeamOrPersonBaseSelectionDialog(shell,
                 "Choose Team or Person", false, TeamOrPersonBaseSelectionDialog.class.getCanonicalName(), entity, selectTeamMember);
-        return (TeamOrPersonBase<?>)getSelectionFromDialog(dialog);
+        return getSelectionFromDialog(dialog);
     }
 
     @Override
     protected void callService(String pattern) {
-        model = CdmStore.getService(IAgentService.class).getUuidAndTitleCache(Team.class, limitOfInitialElements, pattern);
-        model.addAll( CdmStore.getService(IAgentService.class).getUuidAndTitleCache(Person.class,limitOfInitialElements, pattern));
+        model = (List)CdmStore.getService(IAgentService.class).getUuidAndTitleCache(Team.class, limitOfInitialElements, pattern);
+        model.addAll((List)CdmStore.getService(IAgentService.class).getUuidAndTitleCache(Person.class,limitOfInitialElements, pattern));
     }
 
+    @Override
     protected String getTitle(TeamOrPersonBase<?> cdmObject) {
         if(cdmObject == null){
             return "";
index 31318516135136707c44628867838868d638a7e2..b20c74e73da1556731fa7fb25e5d3b8e9b79b41c 100644 (file)
@@ -1,5 +1,10 @@
 /**
+ * Copyright (C) 2007 EDIT
+ * European Distributed Institute of Taxonomy
+ * 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.
  */
 package eu.etaxonomy.taxeditor.ui.element;
 
@@ -46,7 +51,6 @@ import eu.etaxonomy.taxeditor.model.MessagingUtils;
  *
  * @author n.hoffmann
  * @created Feb 22, 2010
- * @param <T>
  */
 //TODO shouldn't ENTITY be bound with super class ICdmBase for example (AbstractFormSection<ENTITY extends ICdmBase>)?
 public abstract class AbstractFormSection<ENTITY>
index c895b7d1a221fbb7ea511919abf9b0d22ac699a4..09a59a77c47cde1cfee47527791a9cbf3a660c2c 100644 (file)
@@ -2415,8 +2415,8 @@ public class CdmFormFactory extends FormToolkit {
         return element;
     }
 
-    public ReferenceDetailElement createReferenceDetailElement(ICdmFormElement parentElement, int style, boolean isWizard){
-        ReferenceDetailElement element = new ReferenceDetailElement(this, parentElement, style, isWizard);
+    public ReferenceDetailElement createReferenceDetailElement(ICdmFormElement parentElement, int style){
+        ReferenceDetailElement element = new ReferenceDetailElement(this, parentElement, style);
         addAndAdaptElement(parentElement, element);
         return element;
     }
@@ -2908,7 +2908,6 @@ public class CdmFormFactory extends FormToolkit {
         return section;
     }
 
-
     public AbstractEntityCollectionElement createEntityCollectionElement(AbstractFormSection parentElement,
             Object versionableEntity, SelectionListener removeListener, Color backgroundColor, int style) {
         AbstractEntityCollectionElement<?> element = null;
index d0d8bcb53abf3f116f2b4c6ddd1d246dbde60f60..f17e81fb56254f5560585cb17fcca81a2b12132b 100644 (file)
@@ -1,3 +1,11 @@
+/**\r
+* Copyright (C) 2018 EDIT\r
+* European Distributed Institute of Taxonomy\r
+* http://www.e-taxonomy.eu\r
+*\r
+* The contents of this file are subject to the Mozilla Public License Version 1.1\r
+* See LICENSE.TXT at the top of this package for the full license terms.\r
+*/\r
 package eu.etaxonomy.taxeditor.ui.element;\r
 \r
 import org.eclipse.jface.util.PropertyChangeEvent;\r
@@ -30,18 +38,7 @@ public class DateDetailSection<T extends TimePeriod>
     }\r
 \r
     /**\r
-        * <p>\r
         * Constructor for DateDetailSection.\r
-        * </p>\r
-        *\r
-        * @param formFactory\r
-        *            a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory}\r
-        *            object.\r
-        * @param parentElement\r
-        *            a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement}\r
-        *            object.\r
-        * @param style\r
-        *            a int.\r
         */\r
        protected DateDetailSection(CdmFormFactory formFactory,\r
                        ICdmFormElement parentElement, boolean includeVerbatim, int style) {\r
@@ -69,8 +66,6 @@ public class DateDetailSection<T extends TimePeriod>
                        LayoutConstants.FILL_HORIZONTALLY(6, 1));\r
                }\r
 \r
-\r
-\r
                text_freeText = formFactory.createTextWithLabelElement(this,\r
                                "Freetext", null, style);\r
                text_freeText.getMainControl().setLayoutData(\r
@@ -111,12 +106,7 @@ public class DateDetailSection<T extends TimePeriod>
 \r
 \r
        /**\r
-        * <p>\r
         * Setter for the field <code>timePeriod</code>.\r
-        * </p>\r
-        *\r
-        * @param timePeriod\r
-        *            a {@link eu.etaxonomy.cdm.model.common.TimePeriod} object.\r
         */\r
        @Override\r
        public void setEntity(T timePeriod) {\r
@@ -126,8 +116,8 @@ public class DateDetailSection<T extends TimePeriod>
        }\r
 \r
        /**\r
-        * When setting the entity through parsing we do not want to alter the parse field\r
-        * @param timePeriod\r
+        * When setting the entity through parsing we do not want\r
+        * to alter the parse field\r
         */\r
        protected void setEntityInternally(T timePeriod){\r
                Partial start = timePeriod.getStart();\r
@@ -149,7 +139,6 @@ public class DateDetailSection<T extends TimePeriod>
                super.setEntity(timePeriod);\r
        }\r
 \r
-       /** {@inheritDoc} */\r
        @Override\r
        public void propertyChange(PropertyChangeEvent event) {\r
                if (event == null) {\r
@@ -168,9 +157,6 @@ public class DateDetailSection<T extends TimePeriod>
                }\r
        }\r
 \r
-       /**\r
-        * @param event\r
-        */\r
        private void handleException(CdmPropertyChangeEvent event) {\r
                firePropertyChangeEvent(new CdmPropertyChangeEvent(this,\r
                                event.getException()));\r
@@ -212,8 +198,6 @@ public class DateDetailSection<T extends TimePeriod>
                firePropertyChangeEvent(new CdmPropertyChangeEvent(this, null));\r
        }\r
 \r
-//     protected abstract T parseNewInstance() ;\r
-\r
        protected void updateTitle(){\r
                String title = CdmUtils.Nz(getEntity().toString());\r
                this.setText(title);\r
@@ -224,7 +208,6 @@ public class DateDetailSection<T extends TimePeriod>
            layout();\r
     }\r
 \r
-       /** {@inheritDoc} */\r
        @Override\r
        public void dispose() {\r
                formFactory.removePropertyChangeListener(this);\r
index c677b86c4e17c94139c48449f2b954db17b15c6b..b32f7fee5e538732765b0fa462eab5544474b21f 100644 (file)
@@ -18,6 +18,7 @@ import eu.etaxonomy.taxeditor.ui.mvc.interfaces.ICdmComposite;
 
 /**
  * Basic implementation of {@link ICdmComposite}.
+ *
  * @author pplitzner
  * @date 11.02.2014
  *
@@ -27,10 +28,6 @@ public abstract class AbstractCdmComposite<T extends CdmCompositeController> ext
 
     protected T controller;
 
-    /**
-     * @param parent
-     * @param style
-     */
     public AbstractCdmComposite(Composite parent, int style) {
         super(parent, style);
     }
@@ -47,25 +44,16 @@ public abstract class AbstractCdmComposite<T extends CdmCompositeController> ext
         }
     }
 
-    /* (non-Javadoc)
-     * @see eu.etaxonomy.taxeditor.ui.mvc.interfaces.CdmComposite#initController(eu.etaxonomy.taxeditor.ui.element.CdmFormFactory, eu.etaxonomy.taxeditor.ui.element.ICdmFormElement)
-     */
     @Override
     public void initController(CdmFormFactory formFactory, ICdmFormElement parentElement) {
         initInternalController(formFactory, parentElement);
         initChildController(formFactory, parentElement);
     }
 
-    /**
-     * @param formFactory
-     * @param parentElement
-     * @return
-     */
     protected abstract void initInternalController(CdmFormFactory formFactory, ICdmFormElement parentElement);
 
     @Override
     public T getController(){
         return controller;
     }
-
-}
+}
\ No newline at end of file
index 1681223d0d9a9cdd3fb153bff08234102a783fca..6e4b37bc6e97f7b24e74afd566430308a9c0cd6d 100644 (file)
@@ -8,9 +8,6 @@
 */
 package eu.etaxonomy.taxeditor.ui.mvc.element;
 
-
-
-
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.events.DisposeEvent;
 import org.eclipse.swt.events.DisposeListener;
@@ -37,13 +34,12 @@ import eu.etaxonomy.taxeditor.ui.mvc.AbstractCdmComposite;
 /**
  * @author pplitzner
  * @date 16.06.2014
- *
  */
 public class DateElement extends AbstractCdmComposite<DateElementController>  {
 
     private final FormToolkit toolkit = new FormToolkit(Display.getCurrent());
     private org.joda.time.DateTime initialDateTime;
-    private Text textDate;
+    private final Text textDate;
     private final Button openDateDialog;
 
     private static final String pattern = "yyyy-MM-dd HH:mm";
@@ -51,8 +47,6 @@ public class DateElement extends AbstractCdmComposite<DateElementController>  {
 
     /**
      * Create the composite.
-     * @param parent
-     * @param style
      */
     public DateElement(Composite parent, org.joda.time.DateTime initDateTime, String label, int style, boolean editableText) {
         super(parent, style);
@@ -60,7 +54,6 @@ public class DateElement extends AbstractCdmComposite<DateElementController>  {
                this.initialDateTime = initDateTime.toDateTime(DateTimeZone.UTC);
         }
 
-
         addDisposeListener(new DisposeListener() {
             @Override
             public void widgetDisposed(DisposeEvent e) {
@@ -120,7 +113,6 @@ public class DateElement extends AbstractCdmComposite<DateElementController>  {
 //                             time.setSeconds(initialDateTime.getSecondOfMinute());
                        }
 
-
 //                     new Label (dialog, SWT.NONE);
 //                     new Label (dialog, SWT.NONE);
                        Button ok = new Button (dialog, SWT.PUSH);
@@ -151,9 +143,6 @@ public class DateElement extends AbstractCdmComposite<DateElementController>  {
         return textDate;
     }
 
-
-
-
     public static org.joda.time.DateTime makeZonedTimeFromSWT(
                                        org.eclipse.swt.widgets.DateTime widget,
                                        org.eclipse.swt.widgets.DateTime dateTime) {
@@ -176,7 +165,6 @@ public class DateElement extends AbstractCdmComposite<DateElementController>  {
                  widget.setDay(dateTime.getDay());
                  widget.setHours(dateTime.getHours());
                  widget.setMinutes(dateTime.getMinutes());
-
        }
 
        public void setData (org.joda.time.DateTime data) {
index 3cdecff447f2b72f8b8da2b383aae994c1cb3914..018bbb15f8d00428819db65017af03668dd04d82 100644 (file)
@@ -54,7 +54,7 @@ import eu.etaxonomy.taxeditor.ui.element.ToggleableTextElement;
  */
 public abstract class AbstractCdmDetailSection<ENTITY>
                        extends AbstractFormSection<ENTITY>
-                       implements IEnableableFormElement, IExpansionListener, ICacheRelevantFormElement  {
+                       implements IEnableableFormElement, IExpansionListener {
 
        protected AbstractCdmDetailElement<ENTITY> detailElement;
 
@@ -64,6 +64,7 @@ public abstract class AbstractCdmDetailSection<ENTITY>
            this(formFactory, null, conversation, parentElement, selectionProvider, style);
        }
 
+       //TODO remove conversation
        public AbstractCdmDetailSection(CdmFormFactory formFactory, Class<ENTITY> clazz,
                        ConversationHolder conversation, ICdmFormElement parentElement,
                        ISelectionProvider selectionProvider, int style) {
@@ -188,10 +189,10 @@ public abstract class AbstractCdmDetailSection<ENTITY>
                                }
                        }
                        if(CdmUtils.isBlank(label)){
-                           label = ((IdentifiableEntity) getEntity()).getTitleCache();
+                           label = ((IdentifiableEntity<?>) getEntity()).getTitleCache();
                        }
                        if(CdmUtils.isBlank(label)){
-                           label = ((IdentifiableEntity) getEntity()).generateTitle();
+                           label = ((IdentifiableEntity<?>) getEntity()).generateTitle();
                        }
                        title = ": " + label;
                }
@@ -211,23 +212,11 @@ public abstract class AbstractCdmDetailSection<ENTITY>
                }
        }
 
-       @Override
-    public void updateCacheRelevance() {
-               if (detailElement != null) {
-                       detailElement.updateCacheRelevance();
-               }
-       }
-
-       @Override
-    public void addDependsOnCache(ToggleableTextElement toggleElement) {
-           if (detailElement != null) {
-            detailElement.addDependsOnCache(toggleElement);
-        }
-    }
-
     @Override
-    public CacheRelevance cacheRelevance() {
-        return detailElement.cacheRelevance();
+    public void setIrrelevant(boolean irrelevant) {
+        if (detailElement != null) {
+            detailElement.setIrrelevant(irrelevant);
+        }
     }
 
     @Override
index b500e540d12585535065743892183c875922c635..57f94cfc04415df18a5f85da1b16f0c7629135b3 100644 (file)
@@ -43,9 +43,10 @@ import eu.etaxonomy.taxeditor.ui.element.LayoutConstants;
  * @author n.hoffmann
  * @created Nov 16, 2009
  */
-public abstract class AbstractEntityCollectionElement<ENTITY> extends
-               AbstractCdmFormElement implements IEntityElement<ENTITY>,
-               SelectionListener, IConversationEnabled {
+public abstract class AbstractEntityCollectionElement<ENTITY>
+        extends AbstractCdmFormElement
+        implements IEntityElement<ENTITY>, SelectionListener,
+              IConversationEnabled {
 
        protected ENTITY entity;
 
index 6fb66665da24ec028bacbc3a4479a2f814c2b489..528f53fba78f120022bb854ec7b196d8a19e469a 100644 (file)
@@ -226,8 +226,7 @@ public abstract class AbstractEntityCollectionSection<ENTITY, ELEMENT>
        /**
         * Create the elements to be shown in this section client area
         */
-       private void renderContent(boolean forceExpansion)
-       {
+       private void renderContent(boolean forceExpansion){
                Collection<ELEMENT> collection = getCollection(getEntity());
 
                if(collection == null || collection.isEmpty()){
@@ -250,8 +249,6 @@ public abstract class AbstractEntityCollectionSection<ENTITY, ELEMENT>
 
        /**
         * Creates the widgets for the collection
-        *
-        * @param elements a {@link java.util.Collection} object.
         */
        protected void createDynamicContents(Collection<ELEMENT> elements)
        {
@@ -281,7 +278,6 @@ public abstract class AbstractEntityCollectionSection<ENTITY, ELEMENT>
                entityCollectionElement = formFactory.createEntityCollectionElement(this, element, removeListener, backgroundColor, SWT.NULL);
        }
 
-       /** {@inheritDoc} */
        @Override
        public void setBackground(Color color) {
                if(label_empty != null && !label_empty.isDisposed()){
@@ -291,18 +287,14 @@ public abstract class AbstractEntityCollectionSection<ENTITY, ELEMENT>
        }
 
        /**
-        * <p>getTitleString</p>
-        *
-        * @return a {@link java.lang.String} object.
+        * getTitleString
         */
        public String getTitleString() {
                return CdmUtils.Nz(title);
        }
 
        /**
-        * <p>setTitleString</p>
-        *
-        * @param title a {@link java.lang.String} object.
+        * setTitleString
         */
        public void setTitleString(String title){
                this.title = title;
@@ -310,13 +302,11 @@ public abstract class AbstractEntityCollectionSection<ENTITY, ELEMENT>
                layout();
        }
 
-       /** {@inheritDoc} */
        @Override
     public void expansionStateChanging(ExpansionEvent e) {
 //             logger.warn("Expansion State Changing");
        }
 
-       /** {@inheritDoc} */
        @Override
     public void expansionStateChanged(ExpansionEvent e) {
                if(isExpanded()){
index 3d2073e8e63fdc5ba9c0bc9db9f8dc6e9f13653c..084059bee96d487ebe94531322290b7e7f1ef4c1 100644 (file)
@@ -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.agent;
 
 import org.eclipse.swt.events.SelectionListener;
@@ -23,40 +22,32 @@ import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
 /**
  * @author n.hoffmann
  * @created Apr 30, 2010
- * @version 1.0
  */
 public class TeamMemberElement extends AbstractEntityCollectionElement<Person> {
 
        private EntitySelectionElement<Person> selection_person;
-       private final boolean isNomenclatural;
 
        public TeamMemberElement(CdmFormFactory cdmFormFactory,
                        AbstractFormSection section, Person entity,
                        SelectionListener removeListener, int style, boolean isNomenclatural) {
                super(cdmFormFactory, section, entity, removeListener, null, style);
-               this.isNomenclatural =isNomenclatural;
-
        }
 
-       /** {@inheritDoc} */
        @Override
        public void createControls(ICdmFormElement element, int style) {
                selection_person = formFactory
                                .createSelectionElement(Person.class,
-                                               //getConversationHolder(),
                                        this, "Person", null,
                                                EntitySelectionElement.EDITABLE | EntitySelectionElement.SELECTABLE,
                                                style);
        }
 
-       /** {@inheritDoc} */
        @Override
        public void setEntity(Person entity) {
                this.entity = entity;
                selection_person.setEntity(entity);
        }
 
-       /** {@inheritDoc} */
     @Override
     public void handleEvent(Object eventSource) {
         if (eventSource == selection_person) {
@@ -71,7 +62,7 @@ public class TeamMemberElement extends AbstractEntityCollectionElement<Person> {
                 }
                 else{
                     //first remove the edited team member and then add it again
-                    //because the model allows the same person multiple time in on team
+                    //because the model allows the same person multiple time in one team
                     team.removeTeamMember(getEntity());
                     team.addTeamMember(selection_person.getEntity(), index);
                 }
@@ -80,4 +71,4 @@ public class TeamMemberElement extends AbstractEntityCollectionElement<Person> {
             entity = selection_person.getEntity();
         }
     }
-}
+}
\ No newline at end of file
index dc9546cfa2b7f41a9e9b5b3e2a0d8592d116e8ef..0faac3dfd9455af805b6d7599845804973b795e8 100644 (file)
@@ -29,8 +29,7 @@ import eu.etaxonomy.taxeditor.ui.section.occurrence.dna.AbstractUnboundEntityCol
  * @created Apr 30, 2010
  */
 public class TeamMemberSection
-        extends AbstractUnboundEntityCollectionSection<Team, Person>
-        implements ICacheRelevantFormElement {
+        extends AbstractUnboundEntityCollectionSection<Team, Person> {
 
     private boolean isNomenclaturalTeam = false;
 
@@ -85,12 +84,14 @@ public class TeamMemberSection
     @Override
     public Comparator<Person> getComparator() {
         return (p1, p2) -> {
-            if(p1==null){
+            if (p1 == p2){
+                return 0;
+            }else if(p1==null){
                 return -1;
-            }
-            if(p2==null){
+            }else if(p2==null){
                 return 1;
             }
+
             List<Person> teamMembers = getEntity().getTeamMembers();
             int indexOfP1 = teamMembers.indexOf(p1);
             int indexOfP2 = teamMembers.indexOf(p2);
@@ -117,22 +118,4 @@ public class TeamMemberSection
     public boolean allowAddExisting() {
         return false;
     }
-
-    @Override
-    public void updateCacheRelevance() {
-        System.out.println("setIrrelevant NOT YET implemented in " + this.getClass().getName());
-    }
-
-    @Override
-    public void addDependsOnCache(ToggleableTextElement toggleElement) {
-        System.out.println("addDependsOnCache NOT YET implemented in " + this.getClass().getName());
-    }
-
-    @Override
-    public CacheRelevance cacheRelevance() {
-        System.out.println("isCached NOT YET implemented in " + this.getClass().getName());
-        return CacheRelevance.NONE;
-    }
-
-
 }
\ No newline at end of file
index fbe8038b0a7195759212b8891fd6a0ae3e8e3e5c..fa5cb680a7b3e1cf354cdb1e34e1765c56c604ae 100644 (file)
@@ -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.description;
 
 import java.util.ArrayList;
@@ -29,11 +28,10 @@ import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
 import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionElement;
 
 /**
- * <p>ModifierElement class.</p>
+ * ModifierElement class.
  *
  * @author n.hoffmann
  * @created Sep 15, 2010
- * @version 1.0
  */
 public class ModifierElement extends AbstractEntityCollectionElement<DefinedTerm> {
 
@@ -54,7 +52,6 @@ public class ModifierElement extends AbstractEntityCollectionElement<DefinedTerm
                super(formFactory, section, entity, removeListener, null, style);
        }
 
-       /** {@inheritDoc} */
        @Override
        public void setEntity(DefinedTerm entity) {
                this.entity = entity;
@@ -86,13 +83,11 @@ public class ModifierElement extends AbstractEntityCollectionElement<DefinedTerm
         }
        }
 
-       /** {@inheritDoc} */
        @Override
        public void createControls(ICdmFormElement element, int style) {
                combo_modifier = formFactory.createDefinedTermComboElement(TermType.Modifier, element, "Modifier", getEntity(), style);
        }
 
-       /** {@inheritDoc} */
        @Override
        public void handleEvent(Object eventSource) {
            if(eventSource==combo_modifier && combo_modifier.getSelection()!=null){
@@ -121,4 +116,4 @@ public class ModifierElement extends AbstractEntityCollectionElement<DefinedTerm
                }
            }
        }
-}
+}
\ No newline at end of file
index aa8147ad3b638914626b7eca38f958b34a716760..28bbb1d93a3d1735eafb6e8837f874bb08226a94 100644 (file)
@@ -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.description.detail;
 
 import org.eclipse.swt.SWT;
@@ -30,7 +29,6 @@ import eu.etaxonomy.taxeditor.ui.section.description.ModifierSection;
  *
  * @author n.hoffmann
  * @created Jun 10, 2010
- * @version 1.0
  */
 public abstract class AbstractDetailedDescriptionDetailElement<T extends DescriptionElementBase> extends AbstractCdmDetailElement<T>{
 
@@ -96,4 +94,4 @@ public abstract class AbstractDetailedDescriptionDetailElement<T extends Descrip
         }
 
     }
-}
+}
\ No newline at end of file
index 0f5d3247d5b39e27601a56580b1599fe37ee887d..9ff5a9c6519f866047ac2b438c3c8862e53495a9 100644 (file)
@@ -1,5 +1,10 @@
 /**
+ * Copyright (C) 2007 EDIT
+ * European Distributed Institute of Taxonomy
+ * 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.
  */
 package eu.etaxonomy.taxeditor.ui.section.media;
 
@@ -31,7 +36,6 @@ import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
 /**
  * @author n.hoffmann
  * @created Nov 17, 2009
- * @version 1.0
  */
 public class MediaMetaElement extends AbstractEntityCollectionElement<Media> implements ISelectableElement, ITogglableMediaElement{
 
@@ -42,7 +46,6 @@ public class MediaMetaElement extends AbstractEntityCollectionElement<Media> imp
     private TimePeriodElement mediaCreated;
     private SelectionArbitrator selectionArbitrator;
 
-
     public MediaMetaElement(CdmFormFactory cdmFormFactory,
             AbstractFormSection<?> formElement, Media element,
             SelectionListener removeListener, int style) {
@@ -51,11 +54,8 @@ public class MediaMetaElement extends AbstractEntityCollectionElement<Media> imp
         if(cdmFormFactory.getSelectionProvider() != null){
             selectionArbitrator = cdmFormFactory.createSelectionArbitrator(this);
         }
-
-
     }
 
-    /** {@inheritDoc} */
     @Override
     public void createControls(ICdmFormElement element, int style) {
 //        final IAction switchAction = MediaViewSwitch.createSwitch(MediaMetaElement.this);
@@ -79,12 +79,10 @@ public class MediaMetaElement extends AbstractEntityCollectionElement<Media> imp
         text_description = formFactory.createLanguageStringWithLabelElement(element, "Description", null, 100, true, style);
 
 
-
-
         mediaDetailElement = formFactory.createMediaDetailElement(element);
 
         ICdmFormElement grandGrandParent = getParentElement().getParentElement().getParentElement();
-        Class clazz = null;
+        Class<?> clazz = null;
         if (grandGrandParent != null){
             clazz = grandGrandParent.getClass();
         }
@@ -95,7 +93,6 @@ public class MediaMetaElement extends AbstractEntityCollectionElement<Media> imp
         addElement(mediaDetailElement);
     }
 
-    /** {@inheritDoc} */
     @Override
     public void setEntity(Media element) {
         this.entity = element;
@@ -114,8 +111,6 @@ public class MediaMetaElement extends AbstractEntityCollectionElement<Media> imp
         }
 
         createTitle();
-
-
     }
 
     public void createTitle() {
@@ -128,8 +123,6 @@ public class MediaMetaElement extends AbstractEntityCollectionElement<Media> imp
         text_title.setLanguageString(title);
     }
 
-
-
     @Override
     protected Media selectFromDialog() {
 
@@ -143,7 +136,6 @@ public class MediaMetaElement extends AbstractEntityCollectionElement<Media> imp
         mediaDetailElement.toggleAdvancedMediaView();
     }
 
-    /** {@inheritDoc} */
    @Override
     public void handleEvent(Object eventSource) {
         if (eventSource == selection_artist) {
@@ -169,7 +161,4 @@ public class MediaMetaElement extends AbstractEntityCollectionElement<Media> imp
     public MediaDetailElement getMediaDetailElement(){
         return mediaDetailElement;
     }
-
-
-
-}
+}
\ No newline at end of file
index cea5da9fbffede27265fb727a290e42dabd6020a..939c520bb3b097215feecbd028b5635b97988d2b 100644 (file)
@@ -32,7 +32,6 @@ public class AuthorshipDetailSection extends AbstractCdmDetailSection<INonViralN
        public AuthorshipDetailSection(CdmFormFactory cdmFormFactory, ConversationHolder conversation, ICdmFormElement parentElement,
                        ISelectionProvider selectionProvider, int style) {
                super(cdmFormFactory, conversation, parentElement, selectionProvider, style);
-
        }
 
        @Override
index 8ef31ec6f092831d41b2e51ad47a6953a3deb7ac..0340ce6f90caf56dbe4d258726354f57cddbc702 100644 (file)
@@ -42,7 +42,8 @@ import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection;
  * @author pplitzner
  * @date 21.01.2014
  */
-public abstract class AbstractUnboundEntityCollectionSection<ENTITY, ELEMENT> extends AbstractEntityCollectionSection<ENTITY, ELEMENT> {
+public abstract class AbstractUnboundEntityCollectionSection<ENTITY, ELEMENT>
+        extends AbstractEntityCollectionSection<ENTITY, ELEMENT> {
 
     private boolean addUnboundElement = false;
 
index 9392dd2499754932799ba666ed70cd6a671d0dd8..564b6d89ab83b99f9f6304c5e9950619869baac5 100644 (file)
@@ -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.occurrence.dna;
 
 import org.eclipse.swt.events.SelectionListener;
@@ -20,47 +19,25 @@ import eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement;
 import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionElement;
 
 /**
- *
  * @author pplitzner
  * @date Oct 16, 2014
- *
- * @param <T>
  */
-public class SampleDesignationTextDetailElement extends
-               AbstractEntityCollectionElement<Identifier> {
+public class SampleDesignationTextDetailElement
+        extends AbstractEntityCollectionElement<Identifier> {
 
     protected TextWithLabelElement text_description;
 
-       /**
-     * @param formFactory
-     * @param section
-     * @param entity
-     * @param removeListener
-     * @param backgroundColor
-     * @param style
-     */
     public SampleDesignationTextDetailElement(CdmFormFactory formFactory, AbstractFormSection<?> section,
             Identifier entity, SelectionListener removeListener, Color backgroundColor, int style) {
         super(formFactory, section, entity, removeListener, backgroundColor, style);
     }
 
-       /*
-        * (non-Javadoc)
-        *
-        * @see
-        * eu.etaxonomy.taxeditor.section.AbstractEntityCollectionElement#createControls
-        * (eu.etaxonomy.taxeditor.forms.ICdmFormElement, int)
-        */
-       /** {@inheritDoc} */
        @Override
        public void createControls(ICdmFormElement element, int style) {
                text_description = formFactory.createTextWithLabelElement(element,
                                "Sample Designation", null, style);
        }
 
-    /* (non-Javadoc)
-     * @see eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionElement#handleEvent(java.lang.Object)
-     */
     @Override
     public void handleEvent(Object eventSource) {
         if(eventSource==text_description){
@@ -72,13 +49,9 @@ public class SampleDesignationTextDetailElement extends
         }
     }
 
-    /* (non-Javadoc)
-     * @see eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionElement#setEntity(java.lang.Object)
-     */
     @Override
     public void setEntity(Identifier entity) {
         this.entity = entity;
         text_description.setText(entity.getIdentifier());
     }
-
-}
+}
\ No newline at end of file
index b648cc31118bfd0a11946f9a727f7b4d07af1ce2..cb489119da23b409bab2cf73421d4cabc92ffeb5 100644 (file)
@@ -23,9 +23,9 @@ import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
 /**
  * @author pplitzner
  * @date 07.01.2014
- *
  */
-public class SequenceReferenceCollectionDetailElement extends AbstractEntityCollectionElement<Reference>{
+public class SequenceReferenceCollectionDetailElement
+        extends AbstractEntityCollectionElement<Reference>{
 
     protected EntitySelectionElement<Reference> selection_reference;
     protected TextWithLabelElement text_referenceDetail;
@@ -36,11 +36,10 @@ public class SequenceReferenceCollectionDetailElement extends AbstractEntityColl
         super(formFactory, section, entity, removeListener, null, style);
     }
 
-    /** {@inheritDoc} */
     @Override
     public void createControls(ICdmFormElement formElement, int style) {
         selection_reference = formFactory
-                .createSelectionElement(Reference.class,//getConversationHolder(),
+                .createSelectionElement(Reference.class,
                         formElement, "Reference",
                         null, EntitySelectionElement.SELECTABLE|EntitySelectionElement.EDITABLE, style);
         text_referenceDetail = formFactory.createTextWithLabelElement(
@@ -70,5 +69,4 @@ public class SequenceReferenceCollectionDetailElement extends AbstractEntityColl
             entity.setReferenceAbstract(text_referenceDetail.getText());
         }
     }
-
-}
+}
\ No newline at end of file
index c8cf893e1bcf61323ab9cadc64718d271c7405bc..da56b527f053aba61679b4c39f5b126477156216 100644 (file)
@@ -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.reference;
 
 import org.eclipse.e4.ui.workbench.modeling.EPartService;
@@ -29,11 +28,10 @@ import eu.etaxonomy.taxeditor.ui.section.ITaxonBaseDetailSection;
  *
  * @author n.hoffmann
  * @created 05.06.2009
- * @version 1.0
  */
 public class ReferenceDetailSection extends AbstractCdmDetailSection<Reference> implements ITaxonBaseDetailSection{
 
-       private TaxonBase taxonBase;
+       private TaxonBase<?> taxonBase;
 
        /**
         * <p>Constructor for ReferenceBaseDetailSection.</p>
@@ -49,24 +47,20 @@ public class ReferenceDetailSection extends AbstractCdmDetailSection<Reference>
                super(cdmFormFactory, conversation, parentElement, selectionProvider, style);
        }
 
-       /** {@inheritDoc} */
        @Override
-    public void setTaxonBase(TaxonBase entity) {
+    public void setTaxonBase(TaxonBase<?> entity) {
                this.taxonBase = entity;
-               TaxonName name = HibernateProxyHelper.deproxy(entity.getName());
-
-               Reference reference = (Reference) HibernateProxyHelper.deproxy(name.getNomenclaturalReference());
+               TaxonName name = entity.getName();
+               Reference reference = HibernateProxyHelper.deproxy(name.getNomenclaturalReference());
 
                setEntity(reference);
        }
 
-       /** {@inheritDoc} */
        @Override
        public String getHeading() {
                return "Reference";
        }
 
-       /** {@inheritDoc} */
        @Override
        public void refresh() {
                super.refresh();
@@ -74,13 +68,12 @@ public class ReferenceDetailSection extends AbstractCdmDetailSection<Reference>
        }
 
        @Override
-       public TaxonBase getTaxonBase() {
+       public TaxonBase<?> getTaxonBase() {
                return taxonBase;
        }
 
        @Override
        protected AbstractCdmDetailElement<Reference> createCdmDetailElement(AbstractCdmDetailSection<Reference> parentElement, int style) {
-           return formFactory.createReferenceDetailElement(parentElement, style, false);
+           return formFactory.createReferenceDetailElement(parentElement, style);
        }
-
-}
+}
\ No newline at end of file
index a0c147783acb55058a49ffa47e0a3f0ec61ba649..2385142046f5dcb8888ac6583d0af3aa0810c2db 100644 (file)
@@ -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.reference;
 
 import org.eclipse.swt.SWT;
@@ -26,11 +25,9 @@ import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
  *
  * @author n.hoffmann
  * @created Jun 1, 2010
- * @version 1.0
  */
 public class ReferenceWizardPage extends AbstractCdmEntityWizardPage<Reference> implements IExceptionHandler{
 
-
        /**
         * <p>Constructor for ReferenceBaseWizardPage.</p>
         *
@@ -45,40 +42,25 @@ public class ReferenceWizardPage extends AbstractCdmEntityWizardPage<Reference>
 
        @Override
     public void createControl(Composite parent) {
-
            super.createControl(parent);
-
        }
 
-       /*
-        * (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.forms.CdmEntityWizardPage#createElement(eu.etaxonomy.taxeditor.forms.ICdmFormElement)
-        */
-       /** {@inheritDoc} */
        @Override
     public AbstractCdmDetailElement<Reference> createElement(ICdmFormElement rootElement){
-               ReferenceDetailElement referenceElement = formFactory.createReferenceDetailElement(rootElement, SWT.NULL, true);
+               ReferenceDetailElement referenceElement = formFactory.createReferenceDetailElement(rootElement, SWT.NULL);
                referenceElement.addExceptionHandler(this);
                referenceElement.setEntity(entity);
                referenceElement.setWarnForReferencingObjectsVisible(true);
                return referenceElement;
        }
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.forms.IExceptionHandler#handleException(eu.etaxonomy.taxeditor.forms.CdmPropertyChangeEvent)
-        */
-       /** {@inheritDoc} */
        @Override
        public void handleException(CdmPropertyChangeEvent event) {
                setMessage(event.getException().getMessage(), WARNING);
        }
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.forms.IExceptionHandler#clearException()
-        */
-       /** {@inheritDoc} */
        @Override
        public void clearException() {
                setMessage(null);
        }
-}
+}
\ No newline at end of file