Project

General

Profile

Download (894 Bytes) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2018 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.webimport.termimport;
10

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

    
13
import eu.etaxonomy.taxeditor.view.webimport.termimport.wrapper.OntologyTermWrapper;
14

    
15
/**
16
 * @author pplitzner
17
 * @since Apr 23, 2018
18
 *
19
 */
20
public class OntologyTermLabelProvider extends LabelProvider {
21

    
22
    @Override
23
    public String getText(Object element) {
24
        if(element instanceof OntologyTermWrapper){
25
            OntologyTermWrapper wrapper = (OntologyTermWrapper) element;
26
            return wrapper.getLabel()+" ("+wrapper.getSourceTerminology()+")";
27
        }
28
        return super.getText(element);
29
    }
30
}
(6-6/7)