Eclipse Platform
Release 3.2

org.eclipse.ui.navigator
Interface ICommonContentProvider

All Superinterfaces:
IContentProvider, IMementoAware, IStructuredContentProvider, ITreeContentProvider
All Known Subinterfaces:
IPipelinedTreeContentProvider
All Known Implementing Classes:
SynchronizationContentProvider

public interface ICommonContentProvider
extends ITreeContentProvider, IMementoAware

The Common content provider allows extensions to vary their behavior based on properties in the extension model and the given memento. The state model should be initialized from values in the memento if necessary.

EXPERIMENTAL. 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.

Clients may (but are not required to) implement this interface if there is no cause to do so. ITreeContentProvider is respected by the Common Navigator.

Since:
3.2

Method Summary
 void init(IExtensionStateModel aStateModel, IMemento aMemento)
          Initialize the content provider with the given extension model and memento.
 
Methods inherited from interface org.eclipse.jface.viewers.ITreeContentProvider
getChildren, getParent, hasChildren
 
Methods inherited from interface org.eclipse.jface.viewers.IStructuredContentProvider
getElements
 
Methods inherited from interface org.eclipse.jface.viewers.IContentProvider
dispose, inputChanged
 
Methods inherited from interface org.eclipse.ui.navigator.IMementoAware
restoreState, saveState
 

Method Detail

init

public void init(IExtensionStateModel aStateModel,
                 IMemento aMemento)
Initialize the content provider with the given extension model and memento.

Parameters:
aStateModel - The state model associated with this logical extension.
aMemento - The associated memento for the given viewer. Clients should ensure that the memento keys are unique; perhaps using the id of the content extension as a prefix.
See Also:
ICommonLabelProvider

Eclipse Platform
Release 3.2

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.