Merge branch 'release/4.13.0'
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / UuidAndTitleCacheLabelProvider.java
1 // $Id$
2 /**
3 * Copyright (C) 2017 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.ui;
11
12 import org.eclipse.jface.viewers.LabelProvider;
13
14 import eu.etaxonomy.cdm.persistence.dto.UuidAndTitleCache;
15
16 /**
17 * @author pplitzner
18 * @date 12.12.2017
19 *
20 */
21 public class UuidAndTitleCacheLabelProvider extends LabelProvider{
22
23 /**
24 * {@inheritDoc}
25 */
26 @Override
27 public String getText(Object element) {
28 if(element instanceof UuidAndTitleCache){
29 return ((UuidAndTitleCache) element).getTitleCache();
30 }
31 return super.getText(element);
32 }
33
34 }