blob: 896888b0660d53158e5615aafd2eee6e16795f2c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2006 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.internal.intro;
/**
* Registry for introduction elements.
*
* @since 3.0
*/
public interface IIntroRegistry {
/**
* Return the number of introduction extensions known by this registry.
*
* @return the number of introduction extensions known by this registry
*/
int getIntroCount();
/**
* Return the introduction extensions known by this registry.
*
* @return the introduction extensions known by this registry
*/
IIntroDescriptor[] getIntros();
/**
* Return the introduction extension that is bound to the given product.
*
* @param productId the product identifier
* @return the introduction extension that is bound to the given product,
* or <code>null</code> if there is no such binding
*/
IIntroDescriptor getIntroForProduct(String productId);
/**
* Find an intro descriptor with the given identifier.
*
* @param id the id
* @return the intro descriptor, or <code>null</code>
*/
IIntroDescriptor getIntro(String id);
}