X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/blobdiff_plain/e92bdb5094feb832b0163f85cce7f1b24ac4c1f8..0875c8c1e298c356f80d58bc8bc93a4f6f43d592:/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/ModifierSection.java diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/ModifierSection.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/ModifierSection.java index 686da6260..b5359b7c0 100644 --- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/ModifierSection.java +++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/ModifierSection.java @@ -1,9 +1,9 @@ // $Id$ /** * Copyright (C) 2007 EDIT -* European Distributed Institute of Taxonomy +* 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. */ @@ -18,7 +18,7 @@ import eu.etaxonomy.cdm.model.common.TermType; import eu.etaxonomy.cdm.model.description.IModifiable; import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; -import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection; +import eu.etaxonomy.taxeditor.ui.section.occurrence.dna.AbstractUnboundEntityCollectionSection; /** *

ModifierSection class.

@@ -27,7 +27,7 @@ import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection; * @created Sep 15, 2010 * @version 1.0 */ -public class ModifierSection extends AbstractEntityCollectionSection { +public class ModifierSection extends AbstractUnboundEntityCollectionSection { /** *

Constructor for ModifierSection.

@@ -42,17 +42,11 @@ public class ModifierSection extends AbstractEntityCollectionSection getCollection(IModifiable entity) { - return entity.getModifiers(); - } /** {@inheritDoc} */ @Override - public DefinedTerm createNewElement() { - return DefinedTerm.NewInstance(TermType.Modifier,"","Untitled",""); + public DefinedTerm createNewElement() { + return DefinedTerm.NewInstance(TermType.Modifier,"","Untitled",""); } /** {@inheritDoc} */ @@ -78,4 +72,12 @@ public class ModifierSection extends AbstractEntityCollectionSection getEntityCollection(IModifiable entity) { + return entity.getModifiers(); + } }