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