Project

General

Profile

Download (981 Bytes) 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.view.datasource;
11

    
12
import java.util.List;
13

    
14
import org.eclipse.jface.viewers.IStructuredContentProvider;
15
import org.eclipse.jface.viewers.Viewer;
16

    
17
/**
18
 * <p>CdmDataSourceContentProvider class.</p>
19
 *
20
 * @author n.hoffmann
21
 * @created 14.04.2009
22
 */
23
public class CdmDataSourceContentProvider implements IStructuredContentProvider {
24

    
25
	/**
26
	 * <p>dispose</p>
27
	 */
28
	public void dispose() {
29
		
30
	}
31

    
32
	/** {@inheritDoc} */
33
	public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
34
		
35
	}
36

    
37

    
38
	/** {@inheritDoc} */
39
	public Object[] getElements(Object inputElement) {
40
		if(inputElement instanceof List){
41
			return ((List) inputElement).toArray();
42
		}
43
		return new Object[]{};
44
	}
45
}
(1-1/4)