minor
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / view / dataimport / DataImportEditorContextMenu.java
old mode 100644 (file)
new mode 100755 (executable)
index 7bd1765..08e6d80
@@ -1,6 +1,8 @@
 package eu.etaxonomy.taxeditor.view.dataimport;
 
 import java.io.IOException;
+import java.util.HashSet;
+import java.util.Set;
 
 import org.apache.http.client.ClientProtocolException;
 import org.apache.log4j.Logger;
@@ -89,7 +91,10 @@ public class DataImportEditorContextMenu extends CompoundContributionItem {
                                     public void handleEvent(Event event) {
                                         try{
                                             DataSetResponse response = new GbifQueryServiceWrapper().queryOriginalDataSet(gbifResponse);
-                                            final BioCaseEditorInput input = new BioCaseEditorInput(new OccurenceQuery(response.getUnitId()), response.getEndpoint());
+                                            Set<String[]> unitIds = new HashSet<String[]>();
+                                            String[] tripleId = {response.getUnitId()};
+                                            unitIds.add(tripleId);
+                                            final BioCaseEditorInput input = new BioCaseEditorInput(new OccurenceQuery(unitIds), response.getEndpoint());
                                            // EditorUtil.open(input);
                                             Job queryJob = new Job("Querying for original record...") {