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()
35 .log(new RuntimeException("Unable to render load path."));
40 * @see IBaseLabelProvider#addListener(ILabelProviderListener)
42 public void addListener(ILabelProviderListener listener) {
46 * @see IBaseLabelProvider#dispose()
48 public void dispose() {
52 * @see IBaseLabelProvider#isLabelProperty(Object, String)
54 public boolean isLabelProperty(Object element, String property) {
59 * @see IBaseLabelProvider#removeListener(ILabelProviderListener)
61 public void removeListener(ILabelProviderListener listener) {