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
.editor
.view
.checklist
;
12 import java
.util
.List
;
14 import org
.eclipse
.jface
.viewers
.IStructuredContentProvider
;
15 import org
.eclipse
.jface
.viewers
.Viewer
;
23 public class ChecklistContentProvider
implements IStructuredContentProvider
{
25 * @see org.eclipse.jface.viewers.IContentProvider#dispose()
31 public void dispose() {
36 * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
40 public void inputChanged(Viewer viewer
, Object oldInput
, Object newInput
) {
46 * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object)
50 public Object
[] getElements(Object inputElement
) {
51 if(inputElement
instanceof List
){
52 return ((List
) inputElement
).toArray();
54 return new Object
[]{};