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