KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > ide > dialogs > CreateProjectStep


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 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.ui.internal.ide.dialogs;
12
13 import org.eclipse.jface.wizard.IWizard;
14 import org.eclipse.osgi.util.NLS;
15 import org.eclipse.ui.internal.ide.IDEWorkbenchMessages;
16
17 /**
18  * Represents the create project step in a multi-step
19  * wizard.
20  */

21 public class CreateProjectStep extends WizardStep {
22     private CreateProjectWizard stepWizard;
23
24     /**
25      * Creates the project creation step
26      *
27      * @param number the step order number
28      * @param page the wizard page containing the new project name and location
29      * @param wizard the multi-step wizard for collecting new project information
30      */

31     public CreateProjectStep(int number,
32             WizardNewProjectNameAndLocationPage page, NewProjectWizard wizard) {
33         super(number);
34         stepWizard = new CreateProjectWizard(page, wizard);
35     }
36
37     /* (non-Javadoc)
38      * Method declared on WizardStep.
39      */

40     public String JavaDoc getLabel() {
41         return IDEWorkbenchMessages.CreateProjectStep_label;
42     }
43
44     /* (non-Javadoc)
45      * Method declared on WizardStep.
46      */

47     public String JavaDoc getDetails() {
48         return NLS.bind(IDEWorkbenchMessages.CreateProjectStep_details, stepWizard.getProjectName());
49     }
50
51     /* (non-Javadoc)
52      * Method declared on WizardStep.
53      */

54     public IWizard getWizard() {
55         return stepWizard;
56     }
57 }
58
Popular Tags