Merged refactoring from development branch.
[taxeditor.git] / taxeditor-navigation / src / main / java / eu / etaxonomy / taxeditor / navigation / key / polytomous / PolytomousKeyContentProvider.java
1 /**
2 *
3 */
4 package eu.etaxonomy.taxeditor.navigation.key.polytomous;
5
6 import java.util.List;
7
8 import org.eclipse.jface.viewers.IStructuredContentProvider;
9 import org.eclipse.jface.viewers.Viewer;
10
11 /**
12 * @author n.hoffmann
13 *
14 */
15 public class PolytomousKeyContentProvider implements IStructuredContentProvider{
16
17 @Override
18 public void dispose() {
19
20 }
21
22 @Override
23 public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
24
25 }
26
27 @Override
28 public Object[] getElements(Object inputElement) {
29 if(inputElement instanceof List){
30 return ((List) inputElement).toArray();
31 }
32 return null;
33 }
34
35 }