1 /*******************************************************************************
2 * Copyright (c) 2005, 2008 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
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package org.eclipse.jdt.internal.ui.refactoring.actions;
13 import org.eclipse.jface.action.IAction;
14 import org.eclipse.jface.viewers.ISelection;
16 import org.eclipse.ui.IWorkbenchWindow;
17 import org.eclipse.ui.IWorkbenchWindowActionDelegate;
20 * Action to apply a refactoring script to the workspace.
22 * TODO: remove once bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=131746 is fixed
24 public final class ApplyRefactoringScriptAction implements IWorkbenchWindowActionDelegate {
26 /** The workbench window, or <code>null</code> */
27 private IWorkbenchWindow fWindow= null;
32 public void dispose() {
39 public void init(final IWorkbenchWindow window) {
46 public void run(final IAction a) {
47 if (fWindow != null) {
48 org.eclipse.ltk.ui.refactoring.actions.ApplyRefactoringScriptAction action= new org.eclipse.ltk.ui.refactoring.actions.ApplyRefactoringScriptAction();
57 public void selectionChanged(final IAction action, final ISelection selection) {