blob: 5949acc267633fdec38d54608ffb691519087bbe [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui;
import org.eclipse.core.resources.IProject;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.IWizard;
/**
* Interface for project capability uninstall wizard. The wizard is
* responsible for collecting any necessary information from the
* user and removing this capability's nature. Also must remove natures
* from capabilities that the user wants removed - capabilites that this
* capability handles the UI for. These other capabilities that the user
* wants removed will be provided in the <code>init</code> method.
* <p>
* The uninstall wizard must only remove natures that are passed in
* its <code>init</code> method.
* </p><p>
* The <code>IProject</code> passed in the init method will exist
* and can be queried for the existance of other natures. The
* uninstall wizard must <b>not</b> close nor delete the project
* passed in the <code>init</code> method. The install wizard must
* <b>not</b> rename the project passed in the <code>init</code> method.
* </p><p>
* The uninstall wizard can change the location of the project if
* required, but must inform the user of this action.
* </p><p>
* Clients should implement this interface and include the name of their class
* in an extension contributed to the workbench's capabilities wizard extension point
* (named <code>"org.eclipse.ui.capabilities"</code>).
* </p>
* <p>
* <b>NOTE:</b> This is experimental API, which may be changed or removed at any point
* in time. This API should not be called, overridden or otherwise used in production code.
* </p>
*
* @see org.eclipse.jface.wizard.IWizard
* @see org.eclipse.ui.ICapabilityInstallWizard
* @since 2.0
*/
public interface ICapabilityUninstallWizard extends IWizard {
/**
* Initializes this capability wizard using the passed workbench,
* object selection, project, and nature IDs.
* <p>
* This method is called after the no argument constructor and
* before other methods are called.
* </p><p>
* The list of nature IDs contains the nature ID for this
* capability. Also includes nature IDs for capabilities that
* the user wants removed - capabilites that this capability
* handles the UI for.
* </p>
*
* @param workbench the current workbench
* @param selection the current object selection
* @param project the project to configure with a capability
* @param natureIds the nature ids to be removed from the project
*/
public void init(IWorkbench workbench, IStructuredSelection selection,
IProject project, String[] natureIds);
}