blob: f58b7a07800ca9a61ebada405ef36562cd83bd29 [file] [log] [blame]
package org.eclipse.wst.server.ui.internal.actions;
/**********************************************************************
* Copyright (c) 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 - Initial API and implementation
*
**********************************************************************/
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.wst.server.ui.internal.wizard.NewServerProjectWizard;
/**
* Action to create a new server project.
*/
public class NewServerProjectAction extends NewWizardAction {
/**
* NewServerProjectAction constructor comment.
*/
public NewServerProjectAction() {
super();
}
/**
* Performs this action.
* <p>
* This method is called when the delegating action has been triggered.
* Implement this method to do the actual work.
* </p>
*
* @param action the action proxy that handles the presentation portion of the
* action
*/
public void run(IAction action) {
NewServerProjectWizard wizard = new NewServerProjectWizard();
wizard.init(workbench, selection);
WizardDialog dialog = new WizardDialog(workbench.getActiveWorkbenchWindow().getShell(), wizard);
dialog.open();
}
}