01: /*******************************************************************************
02: * Copyright (c) 2000, 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.pde.ui;
11:
12: import org.eclipse.core.resources.IProject;
13: import org.eclipse.pde.core.plugin.IPluginModelBase;
14:
15: /**
16: * An interface for extension wizards. Clients should implement this interface
17: * if they are plugging into PDE using <samp>org.eclipse.pde.ui.newExtension
18: * </samp> extension point.
19: *
20: * @since 2.0
21: */
22: public interface IExtensionWizard extends IBasePluginWizard {
23: /**
24: * Initializes the wizard with the project of the plug-in and the model
25: * object for the plug-in manifest file. Java code and other resorces should
26: * be created in the source folder under the provided project. Changes in
27: * the plug-in manifest should be made using the APIs of the provided model.
28: * Changing the model will make the model dirty. This will show up in the UI
29: * indicating that the currently opened manifest file is modified and needs
30: * to be saved.
31: * <p>
32: * Although the wizard is launched to create an extension, there is no
33: * reason a wizard cannot create several at once.
34: *
35: * @param project
36: * the plug-in project resource where the new code and resources
37: * should go
38: * @param pluginModel
39: * the model instance that should be used to modify the plug-in
40: * manifest
41: */
42: public void init(IProject project, IPluginModelBase pluginModel);
43: }
|