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