/*******************************************************************************
* Copyright (c) 2007 Symbian Software Systems 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:
* Andrew Ferguson (Symbian) - Initial implementation
*******************************************************************************/
package org.eclipse.cdt.internal.core.index.provider;
import org.eclipse.cdt.core.index.provider.IIndexProvider;
import org.eclipse.cdt.core.settings.model.ICConfigurationDescription;
import org.eclipse.cdt.internal.core.index.IIndexFragment;
import org.eclipse.core.runtime.CoreException;
/**
* The ICProject IIndex is a logical index composed of potentially many
* IIndexFragments. An IIndexFragmentProvider is a source of IIndexFragments.
* <p>
*
* <p>
* IndexProviders are registered via the extension point
* <code>org.eclipse.cdt.core.CIndex</code>
* <p>
*/
public interface IIndexFragmentProvider extends IIndexProvider {
/**
* Returns an array of IIndexFragment objects to add to the specified
* {@link ICConfigurationDescription}.
*
* @param project
* @return an array of IIndexFragment objects to add to the specified
* {@link ICConfigurationDescription}
*/
IIndexFragment[] getIndexFragments(ICConfigurationDescription config) throws CoreException;
}