Project

General

Profile

Download (806 Bytes) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2018 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.view.webimport.termimport;
11

    
12
import org.eclipse.jface.viewers.LabelProvider;
13

    
14
import eu.etaxonomy.taxeditor.view.webimport.termimport.wrapper.TerminologyWrapper;
15

    
16
/**
17
 * @author pplitzner
18
 * @date 15.05.2018
19
 *
20
 */
21
public class TerminologyLabelProvider extends LabelProvider {
22

    
23

    
24
    @Override
25
    public String getText(Object element) {
26
        if(element instanceof TerminologyWrapper){
27
            return ((TerminologyWrapper) element).getName();
28
       }
29
        return super.getText(element);
30
    }
31

    
32
}
(6-6/6)