KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > navigator > extensions > SkeletonLabelProvider


1 /*******************************************************************************
2  * Copyright (c) 2003, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ui.internal.navigator.extensions;
12
13 import org.eclipse.jface.viewers.ILabelProviderListener;
14 import org.eclipse.swt.graphics.Image;
15 import org.eclipse.ui.IMemento;
16 import org.eclipse.ui.navigator.ICommonContentExtensionSite;
17 import org.eclipse.ui.navigator.ICommonLabelProvider;
18
19 /**
20  *
21  * @since 3.2
22  */

23 public final class SkeletonLabelProvider implements ICommonLabelProvider {
24
25     /**
26      * The initialized singleton instance.
27      */

28     public static final SkeletonLabelProvider INSTANCE = new SkeletonLabelProvider();
29
30     /**
31      *
32      */

33     private SkeletonLabelProvider() {
34         super();
35     }
36
37     /*
38      * (non-Javadoc)
39      *
40      * @see org.eclipse.jface.viewers.ILabelProvider#getImage(java.lang.Object)
41      */

42     public Image getImage(Object JavaDoc element) {
43         return null;
44     }
45
46     /*
47      * (non-Javadoc)
48      *
49      * @see org.eclipse.jface.viewers.ILabelProvider#getText(java.lang.Object)
50      */

51     public String JavaDoc getText(Object JavaDoc element) {
52         return null;
53     }
54
55     /*
56      * (non-Javadoc)
57      *
58      * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProviderListener)
59      */

60     public void addListener(ILabelProviderListener listener) {
61
62     }
63
64     /*
65      * (non-Javadoc)
66      *
67      * @see org.eclipse.jface.viewers.IBaseLabelProvider#dispose()
68      */

69     public void dispose() {
70
71     }
72
73     /*
74      * (non-Javadoc)
75      *
76      * @see org.eclipse.jface.viewers.IBaseLabelProvider#isLabelProperty(java.lang.Object,
77      * java.lang.String)
78      */

79     public boolean isLabelProperty(Object JavaDoc element, String JavaDoc property) {
80         return false;
81     }
82
83     /*
84      * (non-Javadoc)
85      *
86      * @see org.eclipse.jface.viewers.IBaseLabelProvider#removeListener(org.eclipse.jface.viewers.ILabelProviderListener)
87      */

88     public void removeListener(ILabelProviderListener listener) {
89
90     }
91
92  
93     public void init(ICommonContentExtensionSite aConfig) {
94
95     }
96
97  
98     public String JavaDoc getDescription(Object JavaDoc anElement) {
99         return null;
100     }
101
102     public void restoreState(IMemento aMemento) {
103         
104     }
105
106     public void saveState(IMemento aMemento) {
107         
108     }
109
110 }
111
Popular Tags