1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2014 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
package eu.etaxonomy.taxeditor.editor.view.dataimport;
|
11
|
|
12
|
import eu.etaxonomy.cdm.ext.occurrence.gbif.GbifResponse;
|
13
|
|
14
|
/**
|
15
|
* @author pplitzner
|
16
|
* @date 27.05.2014
|
17
|
*
|
18
|
*/
|
19
|
public class GbifImportEditor extends DataImportEditor<GbifResponse>{
|
20
|
|
21
|
public static final String ID = "eu.etaxonomy.taxeditor.editor.view.dataimport.GbifImportEditor";
|
22
|
|
23
|
/**
|
24
|
* Required for extension point
|
25
|
*/
|
26
|
public GbifImportEditor() {
|
27
|
super();
|
28
|
}
|
29
|
|
30
|
/* (non-Javadoc)
|
31
|
* @see eu.etaxonomy.taxeditor.editor.view.dataimport.DataImportEditor#getTextForTableItem(java.lang.Object)
|
32
|
*/
|
33
|
@Override
|
34
|
protected String getTextForTableItem(GbifResponse item) {
|
35
|
String text = "";
|
36
|
if(item.getDataSetProtocol()!=null){
|
37
|
text += "["+item.getDataSetProtocol()+"] ";
|
38
|
}
|
39
|
text += item.getDerivedUnitFacade().innerDerivedUnit().generateTitle();
|
40
|
return text;
|
41
|
}
|
42
|
|
43
|
}
|