Project

General

Profile

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

    
11
package eu.etaxonomy.taxeditor.singlesource.editor.key.polytomous;
12

    
13
import javax.naming.OperationNotSupportedException;
14

    
15
import org.eclipse.jface.viewers.ILabelProviderListener;
16
import org.eclipse.jface.viewers.ViewerCell;
17

    
18
import eu.etaxonomy.taxeditor.singlesource.ImplementationLoader;
19

    
20
/**
21
 * @author n.hoffmann
22
 * @created Apr 18, 2011
23
 * @version 1.0
24
 */
25
public class PolytomousKeyListLabelProviderFacade implements IPolytomousKeyListLabelProvider {
26

    
27
	protected IPolytomousKeyListLabelProvider IMPL;
28
	
29
	/**
30
	 * <p>Constructor for NameViewer.</p>
31
	 *
32
	 * @param parent a {@link org.eclipse.swt.widgets.Composite} object.
33
	 */
34
	public PolytomousKeyListLabelProviderFacade() {
35

    
36
		IMPL = (IPolytomousKeyListLabelProvider)ImplementationLoader.newInstance(PolytomousKeyListLabelProviderFacade.class);
37
	}
38
	
39
	/* (non-Javadoc)
40
	 * @see eu.etaxonomy.taxeditor.singlesource.editor.key.polytomous.IPolytomousKeyListLabelProvider#update(org.eclipse.jface.viewers.ViewerCell)
41
	 */
42
	@Override
43
	public void update(ViewerCell cell) {
44
		IMPL.update(cell);
45
	}
46

    
47
	@Override
48
	public void addListener(ILabelProviderListener listener) {
49
		IMPL.addListener(listener);
50
	}
51

    
52
	@Override
53
	public void dispose() {
54
		IMPL.dispose();
55
	}
56

    
57
	@Override
58
	public boolean isLabelProperty(Object element, String property) {
59
		return IMPL.isLabelProperty(element, property);
60
	}
61

    
62
	@Override
63
	public void removeListener(ILabelProviderListener listener) {
64
		IMPL.removeListener(listener);
65
	}
66
}
(2-2/2)