Merge branch 'develop' into wset
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / combo / TermUuidLabelProvider.java
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;
10
11 import org.eclipse.jface.viewers.LabelProvider;
12
13 import eu.etaxonomy.cdm.model.common.DefinedTerm;
14
15 /**
16 * @author pplitzner
17 * @since Nov 24, 2017
18 *
19 */
20 public class TermUuidLabelProvider extends LabelProvider {
21
22 /**
23 * {@inheritDoc}
24 */
25 @Override
26 public String getText(Object element) {
27 if(element instanceof DefinedTerm){
28 return ((DefinedTerm) element).getLabel();
29 }
30 return super.getText(element);
31 }
32
33 }