3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
11 package eu
.etaxonomy
.taxeditor
.view
.datasource
;
13 import java
.util
.List
;
15 import org
.eclipse
.jface
.viewers
.IStructuredContentProvider
;
16 import org
.eclipse
.jface
.viewers
.Viewer
;
19 * <p>CdmDataSourceContentProvider class.</p>
24 public class CdmDataSourceContentProvider
implements IStructuredContentProvider
{
29 public void dispose() {
34 public void inputChanged(Viewer viewer
, Object oldInput
, Object newInput
) {
40 public Object
[] getElements(Object inputElement
) {
41 if(inputElement
instanceof List
){
42 return ((List
) inputElement
).toArray();
44 return new Object
[]{};