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