6591de885b748ebc68d171b56ff80c9a93b46ffc
[phpeclipse.git] /
1 package net.sourceforge.phpdt.internal.debug.ui.launcher;
2
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;
8
9 /**
10  * @author xp4
11  *
12  * To change this generated comment edit the template variable "typecomment":
13  * Window>Preferences>Java>Templates.
14  */
15 public class LoadPathEntryLabelProvider implements ILabelProvider {
16
17         /**
18          * @see ILabelProvider#getImage(Object)
19          */
20         public Image getImage(Object element) {
21                 return null;
22         }
23
24         /**
25          * @see ILabelProvider#getText(Object)
26          */
27         public String getText(Object element) {
28                 if (element != null && element.getClass() == LoadPathEntry.class)
29                         return ((LoadPathEntry) element).getProject().getLocation().toOSString();
30                         
31                 PHPDebugUiPlugin.log(new RuntimeException("Unable to render load path."));
32                 return null;
33         }
34
35         /**
36          * @see IBaseLabelProvider#addListener(ILabelProviderListener)
37          */
38         public void addListener(ILabelProviderListener listener) {
39         }
40
41         /**
42          * @see IBaseLabelProvider#dispose()
43          */
44         public void dispose() {
45         }
46
47         /**
48          * @see IBaseLabelProvider#isLabelProperty(Object, String)
49          */
50         public boolean isLabelProperty(Object element, String property) {
51                 return false;
52         }
53
54         /**
55          * @see IBaseLabelProvider#removeListener(ILabelProviderListener)
56          */
57         public void removeListener(ILabelProviderListener listener) {
58         }
59
60 }