Organized imports
[phpeclipse.git] / net.sourceforge.phpeclipse.debug.ui / 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().toOSString();
32                         
33                 PHPDebugUiPlugin.log(new RuntimeException("Unable to render load path."));
34                 return null;
35         }
36
37         /**
38          * @see IBaseLabelProvider#addListener(ILabelProviderListener)
39          */
40         public void addListener(ILabelProviderListener listener) {
41         }
42
43         /**
44          * @see IBaseLabelProvider#dispose()
45          */
46         public void dispose() {
47         }
48
49         /**
50          * @see IBaseLabelProvider#isLabelProperty(Object, String)
51          */
52         public boolean isLabelProperty(Object element, String property) {
53                 return false;
54         }
55
56         /**
57          * @see IBaseLabelProvider#removeListener(ILabelProviderListener)
58          */
59         public void removeListener(ILabelProviderListener listener) {
60         }
61
62 }