01: /*******************************************************************************
02: * Copyright (c) 2003, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.navigator;
11:
12: import org.eclipse.jface.viewers.ITreeContentProvider;
13:
14: /**
15: *
16: * Allows extensions to vary their behavior based on properties in the extension
17: * model and the given memento. The state model should be initialized from
18: * values in the memento if necessary.
19: *
20: * <p>
21: * Clients should refer to the <b>org.eclipse.ui.navigator.navigatorContent</b>
22: * extension point for more information on building a content extension.
23: * </p>
24: *
25: * <p>
26: * Clients may (but are not required to) implement this interface if there is no
27: * cause to do so. {@link ITreeContentProvider} is respected by the Common
28: * Navigator.
29: * </p>
30: *
31: * @since 3.2
32: *
33: */
34: public interface ICommonContentProvider extends ITreeContentProvider,
35: IMementoAware {
36:
37: /**
38: * Initialize the content provider with the given configuration.
39: *
40: * @param aConfig
41: * The extension site provides information that some extensions
42: * will find useful to configure themselves properly in a
43: * particular viewer.
44: *
45: * @see ICommonLabelProvider
46: */
47: void init(ICommonContentExtensionSite aConfig);
48:
49: }
|