f5a5aef3ae9ba7ca747a6c42930e531fc05f84c7
[phpeclipse.git] /
1 package net.sourceforge.phpdt.internal.debug.ui.preferences;
2
3 import java.util.List;
4
5 import org.eclipse.jface.viewers.IStructuredContentProvider;
6 import org.eclipse.jface.viewers.Viewer;
7 import net.sourceforge.phpdt.internal.launching.PHPInterpreter;
8
9 public class PHPInterpreterContentProvider implements IStructuredContentProvider {
10         protected List interpreters;
11
12         public PHPInterpreterContentProvider() {
13                 super();
14         }
15
16         public Object[] getElements(Object inputElement) {
17                 return interpreters.toArray();
18         }
19
20         public void dispose() {}
21
22         public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
23                 interpreters = (List) newInput;
24         }
25 }