ref #7502 Add nomenclatural title to agent bulk editor
[taxeditor.git] / eu.etaxonomy.taxeditor.bulkeditor / src / main / java / eu / etaxonomy / taxeditor / bulkeditor / input / NameRelationshipEditorInput.java
index 893232a917d8eae331cee17b86db4ce23c00599f..52ce5ae4186bde20757ccb7fbce1e21c6fedcc79 100644 (file)
@@ -1,4 +1,3 @@
-// $Id$
 /**
 * Copyright (C) 2007 EDIT
 * European Distributed Institute of Taxonomy
 
 package eu.etaxonomy.taxeditor.bulkeditor.input;
 
+import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
 import java.util.UUID;
 
+import eu.etaxonomy.cdm.api.service.config.DeleteConfiguratorBase;
 import eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator;
 import eu.etaxonomy.cdm.model.name.NameRelationship;
 import eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityCreator;
@@ -51,24 +52,17 @@ public class NameRelationshipEditorInput extends AbstractBulkEditorInput<NameRel
                return instance;
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.ui.IEditorInput#getName()
-        */
-       /** {@inheritDoc} */
-       @Override
+    @Override
+    protected List<String> getPropertyKeys_internal() {
+        List<String> propertyKeysInternal = new ArrayList<>();
+        return propertyKeysInternal;
+    }
+
+    @Override
        public String getName() {
                return BulkEditorInputType.NAME_RELATIONSHIP.label;
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.ui.IEditorInput#getToolTipText()
-        */
-       /** {@inheritDoc} */
-       @Override
-       public String getToolTipText() {
-               return getName();
-       }
-
        /* (non-Javadoc)
         * @see eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityPersistenceService#save(java.lang.Object)
         */
@@ -84,11 +78,18 @@ public class NameRelationshipEditorInput extends AbstractBulkEditorInput<NameRel
         */
        /** {@inheritDoc} */
        @Override
-       public boolean delete(NameRelationship entity) {
+       public boolean delete(NameRelationship entity, DeleteConfiguratorBase config) {
                // TODO Auto-generated method stub
                return false;
        }
 
+       @Override
+       protected long countEntities(IIdentifiableEntityServiceConfigurator configurator) {
+           //TODO there is neither a service for name relationships nor any concrete
+           //method for counting them
+           return CdmStore.getCommonService().count(NameRelationship.class);
+       }
+
        /* (non-Javadoc)
         * @see eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput#listEntities(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator)
         */