blob: a4aea980f2aa0b6f85c3a216002c28e3f80fce61 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui.internal.ide.dialogs;
import org.eclipse.jface.wizard.IWizard;
import org.eclipse.ui.internal.ide.IDEWorkbenchMessages;
/**
* Represents the create project step in a multi-step
* wizard.
*/
public class CreateProjectStep extends WizardStep {
private CreateProjectWizard stepWizard;
/**
* Creates the project creation step
*
* @param number the step order number
* @param page the wizard page containing the new project name and location
* @param wizard the multi-step wizard for collecting new project information
*/
public CreateProjectStep(int number, WizardNewProjectNameAndLocationPage page, NewProjectWizard wizard) {
super(number);
stepWizard = new CreateProjectWizard(page, wizard);
}
/* (non-Javadoc)
* Method declared on WizardStep.
*/
public String getLabel() {
return IDEWorkbenchMessages.getString("CreateProjectStep.label"); //$NON-NLS-1$
}
/* (non-Javadoc)
* Method declared on WizardStep.
*/
public String getDetails() {
return IDEWorkbenchMessages.format("CreateProjectStep.details", new Object[] {stepWizard.getProjectName()}); //$NON-NLS-1$
}
/* (non-Javadoc)
* Method declared on WizardStep.
*/
public IWizard getWizard() {
return stepWizard;
}
}