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.ILabelProvider;
7 import org.eclipse.jface.viewers.ILabelProviderListener;
8 import org.eclipse.swt.graphics.Image;
13 * To change this generated comment edit the template variable "typecomment":
14 * Window>Preferences>Java>Templates.
16 public class LoadPathEntryLabelProvider implements ILabelProvider {
19 * @see ILabelProvider#getImage(Object)
21 public Image getImage(Object element) {
26 * @see ILabelProvider#getText(Object)
28 public String getText(Object element) {
29 if (element != null && element.getClass() == LoadPathEntry.class)
30 return ((LoadPathEntry) element).getProject().getLocation().toOSString();
32 PHPDebugUiPlugin.log(new RuntimeException("Unable to render load path."));
37 * @see IBaseLabelProvider#addListener(ILabelProviderListener)
39 public void addListener(ILabelProviderListener listener) {
43 * @see IBaseLabelProvider#dispose()
45 public void dispose() {
49 * @see IBaseLabelProvider#isLabelProperty(Object, String)
51 public boolean isLabelProperty(Object element, String property) {
56 * @see IBaseLabelProvider#removeListener(ILabelProviderListener)
58 public void removeListener(ILabelProviderListener listener) {