01: /*******************************************************************************
02: * Copyright (c) 2004, 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.internal.intro;
11:
12: /**
13: * Registry for introduction elements.
14: *
15: * @since 3.0
16: */
17: public interface IIntroRegistry {
18:
19: /**
20: * Return the number of introduction extensions known by this registry.
21: *
22: * @return the number of introduction extensions known by this registry
23: */
24: int getIntroCount();
25:
26: /**
27: * Return the introduction extensions known by this registry.
28: *
29: * @return the introduction extensions known by this registry
30: */
31: IIntroDescriptor[] getIntros();
32:
33: /**
34: * Return the introduction extension that is bound to the given product.
35: *
36: * @param productId the product identifier
37: * @return the introduction extension that is bound to the given product,
38: * or <code>null</code> if there is no such binding
39: */
40: IIntroDescriptor getIntroForProduct(String productId);
41:
42: /**
43: * Find an intro descriptor with the given identifier.
44: *
45: * @param id the id
46: * @return the intro descriptor, or <code>null</code>
47: */
48: IIntroDescriptor getIntro(String id);
49: }
|