Project

General

Profile

Download (1.18 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 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

    
10
package eu.etaxonomy.taxeditor.preference.menu;
11

    
12
import org.eclipse.jface.viewers.ITableLabelProvider;
13
import org.eclipse.jface.viewers.LabelProvider;
14
import org.eclipse.swt.graphics.Image;
15

    
16
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
17

    
18
/**
19
 * <p>DefinedTermBaseLabelProvider class.</p>
20
 *
21
 * @author n.hoffmann
22
 * @created Aug 5, 2010
23
 * @version 1.0
24
 */
25
public class DefinedTermBaseLabelProvider extends LabelProvider implements
26
		ITableLabelProvider {
27

    
28
	/* (non-Javadoc)
29
	 * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnImage(java.lang.Object, int)
30
	 */
31
	/** {@inheritDoc} */
32
	public Image getColumnImage(Object element, int columnIndex) {
33
		return null;
34
	}
35

    
36
	/* (non-Javadoc)
37
	 * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnText(java.lang.Object, int)
38
	 */
39
	/** {@inheritDoc} */
40
	public String getColumnText(Object element, int columnIndex) {
41
		return ((DefinedTermBase)element).getLabel();
42
	}
43
}
(4-4/21)