001: /*******************************************************************************
002: * Copyright (c) 2003, 2006 IBM Corporation and others.
003: * All rights reserved. This program and the accompanying materials
004: * are made available under the terms of the Eclipse Public License v1.0
005: * which accompanies this distribution, and is available at
006: * http://www.eclipse.org/legal/epl-v10.html
007: *
008: * Contributors:
009: * IBM Corporation - initial API and implementation
010: *******************************************************************************/package org.eclipse.ui.internal.navigator.extensions;
011:
012: import org.eclipse.jface.viewers.ILabelProviderListener;
013: import org.eclipse.swt.graphics.Image;
014: import org.eclipse.ui.IMemento;
015: import org.eclipse.ui.navigator.ICommonContentExtensionSite;
016: import org.eclipse.ui.navigator.ICommonLabelProvider;
017:
018: /**
019: *
020: * @since 3.2
021: */
022: public final class SkeletonLabelProvider implements
023: ICommonLabelProvider {
024:
025: /**
026: * The initialized singleton instance.
027: */
028: public static final SkeletonLabelProvider INSTANCE = new SkeletonLabelProvider();
029:
030: /**
031: *
032: */
033: private SkeletonLabelProvider() {
034: super ();
035: }
036:
037: /*
038: * (non-Javadoc)
039: *
040: * @see org.eclipse.jface.viewers.ILabelProvider#getImage(java.lang.Object)
041: */
042: public Image getImage(Object element) {
043: return null;
044: }
045:
046: /*
047: * (non-Javadoc)
048: *
049: * @see org.eclipse.jface.viewers.ILabelProvider#getText(java.lang.Object)
050: */
051: public String getText(Object element) {
052: return null;
053: }
054:
055: /*
056: * (non-Javadoc)
057: *
058: * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProviderListener)
059: */
060: public void addListener(ILabelProviderListener listener) {
061:
062: }
063:
064: /*
065: * (non-Javadoc)
066: *
067: * @see org.eclipse.jface.viewers.IBaseLabelProvider#dispose()
068: */
069: public void dispose() {
070:
071: }
072:
073: /*
074: * (non-Javadoc)
075: *
076: * @see org.eclipse.jface.viewers.IBaseLabelProvider#isLabelProperty(java.lang.Object,
077: * java.lang.String)
078: */
079: public boolean isLabelProperty(Object element, String property) {
080: return false;
081: }
082:
083: /*
084: * (non-Javadoc)
085: *
086: * @see org.eclipse.jface.viewers.IBaseLabelProvider#removeListener(org.eclipse.jface.viewers.ILabelProviderListener)
087: */
088: public void removeListener(ILabelProviderListener listener) {
089:
090: }
091:
092: public void init(ICommonContentExtensionSite aConfig) {
093:
094: }
095:
096: public String getDescription(Object anElement) {
097: return null;
098: }
099:
100: public void restoreState(IMemento aMemento) {
101:
102: }
103:
104: public void saveState(IMemento aMemento) {
105:
106: }
107:
108: }
|