cleanup
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / view / datasource / CdmDataSourceContentProvider.java
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.view.datasource;
12
13 import java.util.List;
14
15 import org.eclipse.jface.viewers.IStructuredContentProvider;
16 import org.eclipse.jface.viewers.Viewer;
17
18 /**
19 * <p>CdmDataSourceContentProvider class.</p>
20 *
21 * @author n.hoffmann
22 * @created 14.04.2009
23 */
24 public class CdmDataSourceContentProvider implements IStructuredContentProvider {
25
26 /**
27 * <p>dispose</p>
28 */
29 public void dispose() {
30
31 }
32
33 /** {@inheritDoc} */
34 public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
35
36 }
37
38
39 /** {@inheritDoc} */
40 public Object[] getElements(Object inputElement) {
41 if(inputElement instanceof List){
42 return ((List) inputElement).toArray();
43 }
44 return new Object[]{};
45 }
46 }