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.editor.view.checklist;
|
11
|
|
12
|
import java.util.List;
|
13
|
|
14
|
import org.eclipse.jface.viewers.IStructuredContentProvider;
|
15
|
import org.eclipse.jface.viewers.Viewer;
|
16
|
|
17
|
/**
|
18
|
* @author a.oppermann
|
19
|
* @created 30.04.2014
|
20
|
*/
|
21
|
public class ChecklistContentProvider implements IStructuredContentProvider {
|
22
|
|
23
|
/**
|
24
|
* <p>dispose</p>
|
25
|
*/
|
26
|
@Override
|
27
|
public void dispose() {
|
28
|
|
29
|
}
|
30
|
|
31
|
@Override
|
32
|
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
|
33
|
|
34
|
}
|
35
|
|
36
|
@Override
|
37
|
public Object[] getElements(Object inputElement) {
|
38
|
if(inputElement instanceof List){
|
39
|
return ((List) inputElement).toArray();
|
40
|
}
|
41
|
return new Object[]{};
|
42
|
}
|
43
|
}
|