Merge branch 'develop' into LibrAlign
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / description / GeoScopeSection.java
index b8a69e0ae77995b478bd5cc78bf82c7309cb38e9..ca3dcc277776ac908afeabd929fb7b0a2cf4ac00 100644 (file)
@@ -1,9 +1,8 @@
-// $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.
 */
@@ -27,7 +26,7 @@ import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection;
  * @version 1.0
  */
 public class GeoScopeSection extends AbstractEntityCollectionSection<TaxonDescription, NamedArea> {
-       
+
        /**
         * <p>Constructor for GeoScopeSection.</p>
         *
@@ -40,7 +39,7 @@ public class GeoScopeSection extends AbstractEntityCollectionSection<TaxonDescri
                        ConversationHolder conversation, ICdmFormElement parentElement, int style) {
                super(formFactory, conversation, parentElement, "Geo Scope", style);
        }
-       
+
        /** {@inheritDoc} */
        @Override
        public Collection<NamedArea> getCollection(TaxonDescription entity) {
@@ -76,4 +75,20 @@ public class GeoScopeSection extends AbstractEntityCollectionSection<TaxonDescri
        protected String getTooltipString() {
                return "Add a new geo scope.";
        }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public NamedArea addExisting() {
+        return null;
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    @Override
+    public boolean allowAddExisting() {
+        return false;
+    }
 }