1 package net.sourceforge.phpdt.internal.debug.ui.launcher;
3 import net.sourceforge.phpdt.internal.debug.ui.PHPDebugUiPlugin;
4 import net.sourceforge.phpeclipse.LoadPathEntry;
6 import org.eclipse.jface.viewers.IBaseLabelProvider;
7 import org.eclipse.jface.viewers.ILabelProvider;
8 import org.eclipse.jface.viewers.ILabelProviderListener;
9 import org.eclipse.swt.graphics.Image;
14 * To change this generated comment edit the template variable "typecomment":
15 * Window>Preferences>Java>Templates.
17 public class LoadPathEntryLabelProvider implements ILabelProvider {
20 * @see ILabelProvider#getImage(Object)
22 public Image getImage(Object element) {
27 * @see ILabelProvider#getText(Object)
29 public String getText(Object element) {
30 if (element != null && element.getClass() == LoadPathEntry.class)
31 return ((LoadPathEntry) element).getProject().getLocation().toOSString();
33 PHPDebugUiPlugin.log(new RuntimeException("Unable to render load path."));
38 * @see IBaseLabelProvider#addListener(ILabelProviderListener)
40 public void addListener(ILabelProviderListener listener) {
44 * @see IBaseLabelProvider#dispose()
46 public void dispose() {
50 * @see IBaseLabelProvider#isLabelProperty(Object, String)
52 public boolean isLabelProperty(Object element, String property) {
57 * @see IBaseLabelProvider#removeListener(ILabelProviderListener)
59 public void removeListener(ILabelProviderListener listener) {