1 | /** |
2 | * |
3 | */ |
4 | package de.uka.ipd.sdq.sensorframework.visualisation.tabs.sensors; |
5 | |
6 | import org.eclipse.jface.viewers.IStructuredContentProvider; |
7 | import org.eclipse.jface.viewers.Viewer; |
8 | |
9 | import de.uka.ipd.sdq.sensorframework.visualisation.editor.ConfigEditorInput; |
10 | |
11 | /** |
12 | * @author admin |
13 | * |
14 | */ |
15 | public class SensorsTabContentProvider implements IStructuredContentProvider { |
16 | |
17 | /* (non-Javadoc) |
18 | * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object) |
19 | */ |
20 | public Object[] getElements(Object inputElement) { |
21 | if (inputElement instanceof ConfigEditorInput) { |
22 | ConfigEditorInput configuration = (ConfigEditorInput) inputElement; |
23 | return configuration.getConfigEntrys().toArray(); |
24 | } |
25 | return null; |
26 | } |
27 | |
28 | /* (non-Javadoc) |
29 | * @see org.eclipse.jface.viewers.IContentProvider#dispose() |
30 | */ |
31 | public void dispose() { |
32 | // TODO Auto-generated method stub |
33 | |
34 | } |
35 | |
36 | /* (non-Javadoc) |
37 | * TODO Delete --> Geht nicht!!! |
38 | * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object) |
39 | */ |
40 | public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { |
41 | |
42 | } |
43 | |
44 | } |