1 package net.sourceforge.phpdt.internal.debug.ui.preferences;
3 import net.sourceforge.phpdt.internal.launching.PHPInterpreter;
5 import org.eclipse.core.runtime.IPath;
6 import org.eclipse.jface.viewers.ILabelProviderListener;
7 import org.eclipse.jface.viewers.ITableLabelProvider;
8 import org.eclipse.swt.graphics.Image;
10 public class PHPInterpreterLabelProvider implements ITableLabelProvider {
12 public PHPInterpreterLabelProvider() {
16 public Image getColumnImage(Object element, int columnIndex) {
20 public String getColumnText(Object element, int columnIndex) {
21 PHPInterpreter interpreter = (PHPInterpreter) element;
22 switch (columnIndex) {
24 return interpreter.getName();
26 IPath installLocation = interpreter.getInstallLocation();
27 return installLocation != null ? installLocation.toOSString() : "In user path";
29 return "Unknown Column Index";
33 public void addListener(ILabelProviderListener listener) {}
35 public void dispose() {}
37 public boolean isLabelProperty(Object element, String property) {
41 public void removeListener(ILabelProviderListener listener) {}