blob: 27f34b26fa60ab97c4bf745d219d685eb9c92373 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2003, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui.navigator;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ITreeContentProvider;
/**
* <p>
* A custom interface for Common Navigator extensions that either (1) require
* more information about the specific
* {@link org.eclipse.ui.navigator.CommonViewer}&nbsp;they are
* associated with, or (2) would like to return a custom description for use in
* the Status Bar. Clients may choose to implement this interface for the
* <i>labelProvider</i> attribute of the
* <b>org.eclipse.ui.navigator.navigatorContent </b> extension
* point.
* </p>
* <p>
* Clients need not implement this interface if there is no cause to do so.
* {@link org.eclipse.jface.viewers.ILabelProvider}&nbsp;is respected by the
* Common Navigator.
* </p>
* <p>
* <strong>EXPERIMENTAL</strong>. This class or interface has been added as
* part of a work in progress. There is a guarantee neither that this API will
* work nor that it will remain the same. Please do not use this API without
* consulting with the Platform/UI team.
* </p>
*<p>
* Clients may implement this interface.
*</p>
* @since 3.2
*/
public interface ICommonLabelProvider extends ILabelProvider, IMementoAware,
IDescriptionProvider {
/**
* <p>
* Provides the state model for any initialization.
* </p>
*
* @param aStateModel
* The state model associated with this logical extension.
* @param aContentProvider
* The associated content provider for this label provider.
*
* @see ICommonContentProvider
*
*/
void init(IExtensionStateModel aStateModel,
ITreeContentProvider aContentProvider);
}