]> gerrit.simantics Code Review - simantics/3d.git/blob - org.simantics.plant3d/src/org/simantics/plant3d/dialog/ComponentContentProvider.java
Tag user modifiable length
[simantics/3d.git] / org.simantics.plant3d / src / org / simantics / plant3d / dialog / ComponentContentProvider.java
1 package org.simantics.plant3d.dialog;
2
3 import java.util.List;
4
5 import org.eclipse.jface.viewers.IStructuredContentProvider;
6 import org.eclipse.jface.viewers.Viewer;
7 import org.simantics.plant3d.utils.Item;
8
9 public class ComponentContentProvider implements IStructuredContentProvider {
10         
11         @Override
12         public Object[] getElements(Object inputElement) {
13                 @SuppressWarnings("unchecked")
14                 List<Item> list = (List<Item>)inputElement;
15                 return list.toArray();
16         }
17         
18         @Override
19         public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
20                 
21         }
22         @Override
23         public void dispose() {
24                 
25         }
26
27 }