1 package org.simantics.plant3d.dialog;
5 import org.eclipse.jface.viewers.IStructuredContentProvider;
6 import org.eclipse.jface.viewers.Viewer;
7 import org.simantics.plant3d.utils.Item;
9 public class ComponentContentProvider implements IStructuredContentProvider {
12 public Object[] getElements(Object inputElement) {
13 @SuppressWarnings("unchecked")
14 List<Item> list = (List<Item>)inputElement;
15 return list.toArray();
19 public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
23 public void dispose() {