blob: 603c747f05ebe579e5ecf53fd05a11c7b2138e6c [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.wst.server.ui.internal.wizard.ClosableWizardDialog;
import org.eclipse.wst.server.ui.internal.wizard.NewServerWizard;
/**
* Action to create a new server.
*/
public class NewServerAction extends NewWizardAction {
/**
* NewServerAction constructor comment.
*/
public NewServerAction() {
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) {
NewServerWizard wizard = new NewServerWizard();
wizard.init(workbench, selection);
ClosableWizardDialog dialog = new ClosableWizardDialog(workbench.getActiveWorkbenchWindow().getShell(), wizard);
dialog.open();
}
}