Project

General

Profile

Download (1.13 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2014 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.taxeditor.view.dataimport;
10

    
11
import eu.etaxonomy.cdm.ext.occurrence.gbif.GbifResponse;
12

    
13
/**
14
 * @author pplitzner
15
 * @date 27.05.2014
16
 *
17
 */
18
public class GbifImportEditor extends DataImportEditor<GbifResponse>{
19

    
20
    public static final String ID = "eu.etaxonomy.taxeditor.view.dataimport.GbifImportEditor";
21

    
22
    /**
23
     * Required for extension point
24
     */
25
    public GbifImportEditor() {
26
        super();
27
    }
28

    
29
    /* (non-Javadoc)
30
     * @see eu.etaxonomy.taxeditor.view.dataimport.DataImportEditor#getTextForTableItem(java.lang.Object)
31
     */
32
    @Override
33
    protected String getTextForTableItem(GbifResponse item) {
34
        String text = "";
35
        if(item.getDataSetProtocol()!=null){
36
            text += "["+item.getDataSetProtocol()+"] ";
37
        }
38
        text += item.getDerivedUnitFacade().innerDerivedUnit().generateTitle();
39
        return text;
40
    }
41

    
42
}
(6-6/16)