1 package net.sourceforge.phpdt.internal.debug.ui.preferences;
3 import org.eclipse.core.runtime.IPath;
4 import org.eclipse.jface.viewers.ILabelProviderListener;
5 import org.eclipse.jface.viewers.ITableLabelProvider;
6 import org.eclipse.swt.graphics.Image;
7 import net.sourceforge.phpdt.internal.launching.PHPInterpreter;
9 public class PHPInterpreterLabelProvider implements ITableLabelProvider {
11 public PHPInterpreterLabelProvider() {
15 public Image getColumnImage(Object element, int columnIndex) {
19 public String getColumnText(Object element, int columnIndex) {
20 PHPInterpreter interpreter = (PHPInterpreter) element;
21 switch (columnIndex) {
23 return interpreter.getName();
25 IPath installLocation = interpreter.getInstallLocation();
26 return installLocation != null ? installLocation.toOSString() : "In user path";
28 return "Unknown Column Index";
32 public void addListener(ILabelProviderListener listener) {}
34 public void dispose() {}
36 public boolean isLabelProperty(Object element, String property) {
40 public void removeListener(ILabelProviderListener listener) {}