Project

General

Profile

Download (772 Bytes) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2017 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.ui.combo.termvocabulary;
10

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

    
13
import eu.etaxonomy.cdm.model.common.TermVocabulary;
14

    
15
/**
16
 *
17
 * @author pplitzner
18
 * @since Aug 17, 2018
19
 *
20
 */
21
public class TermVocabularyComboLabelProvider extends LabelProvider {
22

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

    
31
}
(2-2/3)