Revision 1103732d
Added by Katja Luther almost 8 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/dataimport/DataImportEditorContextMenu.java | ||
---|---|---|
1 | 1 |
package eu.etaxonomy.taxeditor.view.dataimport; |
2 | 2 |
|
3 | 3 |
import java.io.IOException; |
4 |
import java.util.HashSet; |
|
5 |
import java.util.Set; |
|
4 | 6 |
|
5 | 7 |
import org.apache.http.client.ClientProtocolException; |
6 | 8 |
import org.apache.log4j.Logger; |
... | ... | |
89 | 91 |
public void handleEvent(Event event) { |
90 | 92 |
try{ |
91 | 93 |
DataSetResponse response = new GbifQueryServiceWrapper().queryOriginalDataSet(gbifResponse); |
92 |
final BioCaseEditorInput input = new BioCaseEditorInput(new OccurenceQuery(response.getUnitId()), response.getEndpoint()); |
|
94 |
Set<String[]> unitIds = new HashSet<String[]>(); |
|
95 |
String[] tripleId = {response.getUnitId()}; |
|
96 |
unitIds.add(tripleId); |
|
97 |
final BioCaseEditorInput input = new BioCaseEditorInput(new OccurenceQuery(unitIds), response.getEndpoint()); |
|
93 | 98 |
// EditorUtil.open(input); |
94 | 99 |
Job queryJob = new Job("Querying for original record...") { |
95 | 100 |
|
Also available in: Unified diff
minor