All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.ui.wizards.IWizardDescriptor Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
 * Copyright (c) 2004, 2008 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.wizards;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.IWorkbenchPartDescriptor;
import org.eclipse.ui.IWorkbenchWizard;

/**
 * Base interface for all wizards defined via workbench extension points.
 * 

* This interface is not intended to be implemented by clients. *

* * @since 3.1 * @noimplement This interface is not intended to be implemented by clients. */ public interface IWizardDescriptor extends IWorkbenchPartDescriptor, IAdaptable { /** * Answer the selection for the reciever based on whether the it can handle * the selection. If it can return the selection. If it can handle the * adapted to IResource value of the selection. If it satisfies neither of * these conditions return an empty IStructuredSelection. * * @return IStructuredSelection * @param selection * IStructuredSelection */ IStructuredSelection adaptedSelection(IStructuredSelection selection); /** * Return the description. * * @return the description */ String getDescription(); /** * Return the tags associated with this wizard. * * @return the tags associated with this wizard */ String[] getTags(); /** * Create a wizard. * * @return the wizard * @throws CoreException * thrown if there is a problem creating the wizard */ IWorkbenchWizard createWizard() throws CoreException; /** * Return the description image for this wizard. * * @return the description image for this wizard or null */ public ImageDescriptor getDescriptionImage(); /** * Return the help system href for this wizard. * * @return the help system href for this wizard or null */ String getHelpHref(); /** * Return the category for this wizard. * * @return the category or null */ IWizardCategory getCategory(); /** * Answer true if this wizard is able to finish without loading * any pages. This is a hint to any * {@link org.eclipse.jface.wizard.WizardSelectionPage} or container that * may contain this wizard to allow the finish button to be pressed without * actually entering the wizard. If this occurs the * {@link org.eclipse.jface.wizard.IWizard#performFinish()} method should be * invoked by the containing wizard without creating any pages. * * @return true if this wizard can finish immediately */ boolean canFinishEarly(); /** * Answer true if this wizard has any pages. This is a hint to * any {@link org.eclipse.jface.wizard.WizardSelectionPage} or container * that may contain this wizard that they should enable the "Next" button, * if appropriate. * * @return true if this wizard has wizard pages */ boolean hasPages(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy