KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > intro > IIntroRegistry


1 /*******************************************************************************
2  * Copyright (c) 2004, 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.internal.intro;
12
13 /**
14  * Registry for introduction elements.
15  *
16  * @since 3.0
17  */

18 public interface IIntroRegistry {
19
20     /**
21      * Return the number of introduction extensions known by this registry.
22      *
23      * @return the number of introduction extensions known by this registry
24      */

25     int getIntroCount();
26
27     /**
28      * Return the introduction extensions known by this registry.
29      *
30      * @return the introduction extensions known by this registry
31      */

32     IIntroDescriptor[] getIntros();
33
34     /**
35      * Return the introduction extension that is bound to the given product.
36      *
37      * @param productId the product identifier
38      * @return the introduction extension that is bound to the given product,
39      * or <code>null</code> if there is no such binding
40      */

41     IIntroDescriptor getIntroForProduct(String JavaDoc productId);
42
43     /**
44      * Find an intro descriptor with the given identifier.
45      *
46      * @param id the id
47      * @return the intro descriptor, or <code>null</code>
48      */

49     IIntroDescriptor getIntro(String JavaDoc id);
50 }
51
Popular Tags