2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.view
.datasource
;
12 import java
.util
.List
;
14 import org
.eclipse
.jface
.viewers
.IStructuredContentProvider
;
15 import org
.eclipse
.jface
.viewers
.Viewer
;
18 * <p>CdmDataSourceContentProvider class.</p>
23 public class CdmDataSourceContentProvider
implements IStructuredContentProvider
{
28 public void dispose() {
33 public void inputChanged(Viewer viewer
, Object oldInput
, Object newInput
) {
39 public Object
[] getElements(Object inputElement
) {
40 if(inputElement
instanceof List
){
41 return ((List
) inputElement
).toArray();
43 return new Object
[]{};