blob: 805e76818a122ed8d3d50c79b291f242c4de2a27 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008, 2009 Chase Technology Ltd - http://www.chasetechnology.co.uk
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Doug Satchwell (Chase Technology Ltd) - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.xsl.ui.internal.actions;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkbenchWindowActionDelegate;
public class NewDTDFileWizardDelegate implements IWorkbenchWindowActionDelegate
{
private static final String DTD_UI_INTERNAL_WIZARD_NEW_DTD_WIZARD_ID = "org.eclipse.wst.dtd.ui.internal.wizard.NewDTDWizard"; //$NON-NLS-1$
private NewWizardAction openAction;
private ISelection selection;
public void init(IWorkbenchWindow window)
{
this.openAction = new NewWizardAction(DTD_UI_INTERNAL_WIZARD_NEW_DTD_WIZARD_ID);
}
public void run(IAction action)
{
openAction.setSelection(selection);
openAction.run();
}
public void selectionChanged(IAction action, ISelection selection)
{
this.selection = selection;
}
public void dispose()
{
}
}