ref #8222 Add interface method for operation based editors
authorPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 10 Apr 2019 10:32:29 +0000 (12:32 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 10 Apr 2019 10:32:29 +0000 (12:32 +0200)
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/BulkEditorE4.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/TaxonNameEditorE4.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/ITaxonEditor.java

index c7fcea8..536ca76 100644 (file)
@@ -59,6 +59,7 @@ import eu.etaxonomy.taxeditor.model.IPartContentHasDetails;
 import eu.etaxonomy.taxeditor.model.IPartContentHasFactualData;
 import eu.etaxonomy.taxeditor.model.IPartContentHasMedia;
 import eu.etaxonomy.taxeditor.model.IPartContentHasSupplementalData;
+import eu.etaxonomy.taxeditor.operation.AbstractPostOperation;
 import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
 import eu.etaxonomy.taxeditor.workbench.part.IE4SavablePart;
 
@@ -316,7 +317,11 @@ public class BulkEditorE4 implements IPartContentHasDetails, IConversationEnable
     @Override
     public void update() {
         input.performSearch(lastQuery, getSelection());
+    }
 
+    @Override
+    public void addOperation(AbstractPostOperation operation) {
+        // operations not yet used for bulk editor
     }
 
     @Inject
index 614bd7a..f033480 100644 (file)
@@ -95,6 +95,7 @@ import eu.etaxonomy.taxeditor.model.IPartContentHasMedia;
 import eu.etaxonomy.taxeditor.model.IPartContentHasSupplementalData;
 import eu.etaxonomy.taxeditor.model.MessagingUtils;
 import eu.etaxonomy.taxeditor.model.TaxeditorPartService;
+import eu.etaxonomy.taxeditor.operation.AbstractPostOperation;
 import eu.etaxonomy.taxeditor.preference.Resources;
 import eu.etaxonomy.taxeditor.security.RequiredPermissions;
 import eu.etaxonomy.taxeditor.store.CdmStore;
@@ -241,6 +242,11 @@ public class TaxonNameEditorE4 implements IConversationEnabled, IDirtyMarkable,
         return HibernateProxyHelper.deproxy(taxon);
     }
 
+    @Override
+    public void addOperation(AbstractPostOperation operation) {
+        input.addOperation(operation);
+    }
+
     public void setDirty() {
         managedForm.dirtyStateChanged();
     }
index e675b79..fe81036 100755 (executable)
@@ -1,6 +1,7 @@
 package eu.etaxonomy.taxeditor.editor;
 
 import eu.etaxonomy.cdm.model.taxon.Taxon;
+import eu.etaxonomy.taxeditor.operation.AbstractPostOperation;
 
 
 public interface ITaxonEditor {
@@ -12,4 +13,6 @@ public interface ITaxonEditor {
        public abstract Taxon getTaxon();
 
        public abstract void update();
+
+    public void addOperation(AbstractPostOperation operation);
 }