Initial import of handler for opening taxa from navigator in bulk editor
authorPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 1 Jun 2016 08:36:03 +0000 (10:36 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Wed, 1 Jun 2016 08:38:13 +0000 (10:38 +0200)
eu.etaxonomy.taxeditor.bulkeditor/plugin.xml
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/handler/defaultHandler/OpenBulkEditorForTaxonNodeHandler.java [new file with mode: 0644]

index 4869f718f708c836da07c80dcedda77ff609f01a..50639becab969bf061ef05037a7d42eef1980a8b 100644 (file)
             id="eu.etaxonomy.taxeditor.openReferencingObjectsView"
             name="%command.name.OPEN_REFERENCING_OBJECTS_VIEW">
       </command>
+      <command
+            defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.defaultHandler.OpenBulkEditorForTaxonNodeHandler"
+            id="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForTaxonNode"
+            name="Open bulk editor for taxon  node">
+      </command>
       <!--command
             defaultHandler="eu.etaxonomy.taxeditor.bulkeditor.handler.NewEntityHandler"
             id="eu.etaxonomy.taxeditor.bulkeditor.command.new"
             selection="java.lang.Object"
             viewerName="Referencing Objects View">
       </viewCommandMapping>
+      <viewCommandMapping
+            commandId="eu.etaxonomy.taxeditor.bulkeditor.openBulkEditorForTaxonNode"
+            selection="eu.etaxonomy.cdm.model.taxon.TaxonNode"
+            viewerName="Bulk Editor">
+      </viewCommandMapping>
    </extension>
 <!-- start set marker -->
 
diff --git a/eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/handler/defaultHandler/OpenBulkEditorForTaxonNodeHandler.java b/eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/handler/defaultHandler/OpenBulkEditorForTaxonNodeHandler.java
new file mode 100644 (file)
index 0000000..22292b0
--- /dev/null
@@ -0,0 +1,15 @@
+package eu.etaxonomy.taxeditor.bulkeditor.handler.defaultHandler;
+
+import org.eclipse.core.commands.AbstractHandler;
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+
+public class OpenBulkEditorForTaxonNodeHandler extends AbstractHandler {
+
+       @Override
+       public Object execute(ExecutionEvent event) throws ExecutionException {
+               System.out.println("event");
+               return null;
+       }
+
+}