KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > core > plugin > IExtensionsModelFactory


1 /*******************************************************************************
2  * Copyright (c) 2000, 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.pde.core.plugin;
12
13 /**
14  * This factory should be used to create
15  * instances of the extensions model objects.
16  *
17  * @since 3.0
18  */

19 public interface IExtensionsModelFactory {
20     /**
21      * Creates a new attribute instance for the
22      * provided element.
23      *
24      * @param element the parent element
25      * @return the new attribute instance
26      */

27     IPluginAttribute createAttribute(IPluginElement element);
28     /**
29      * Creates a new element instance for the
30      * provided parent.
31      *
32      * @param parent the parent element
33      * @return the new element instance
34      */

35     IPluginElement createElement(IPluginObject parent);
36     /**
37      * Creates a new extension instance.
38      * @return the new extension instance
39      */

40     IPluginExtension createExtension();
41     /**
42      * Creates a new extension point instance
43      *
44      * @return a new extension point
45      */

46     IPluginExtensionPoint createExtensionPoint();
47 }
48
Popular Tags