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.navigator; 12 13 import org.eclipse.jface.viewers.ITreeContentProvider; 14 15 /** 16 * 17 * Allows extensions to vary their behavior based on properties in the extension 18 * model and the given memento. The state model should be initialized from 19 * values in the memento if necessary. 20 * 21 * <p> 22 * Clients should refer to the <b>org.eclipse.ui.navigator.navigatorContent</b> 23 * extension point for more information on building a content extension. 24 * </p> 25 * 26 * <p> 27 * Clients may (but are not required to) implement this interface if there is no 28 * cause to do so. {@link ITreeContentProvider} is respected by the Common 29 * Navigator. 30 * </p> 31 * 32 * @since 3.2 33 * 34 */ 35 public interface ICommonContentProvider extends ITreeContentProvider, 36 IMementoAware { 37 38 /** 39 * Initialize the content provider with the given configuration. 40 * 41 * @param aConfig 42 * The extension site provides information that some extensions 43 * will find useful to configure themselves properly in a 44 * particular viewer. 45 * 46 * @see ICommonLabelProvider 47 */ 48 void init(ICommonContentExtensionSite aConfig); 49 50 } 51