1 11 package org.eclipse.jdt.internal.ui.refactoring.actions; 12 13 import org.eclipse.jface.action.IAction; 14 import org.eclipse.jface.viewers.ISelection; 15 16 import org.eclipse.ui.IWorkbenchWindow; 17 import org.eclipse.ui.IWorkbenchWindowActionDelegate; 18 19 24 public final class ApplyRefactoringScriptAction implements IWorkbenchWindowActionDelegate { 25 26 27 private IWorkbenchWindow fWindow= null; 28 29 32 public void dispose() { 33 } 35 36 39 public void init(final IWorkbenchWindow window) { 40 fWindow= window; 41 } 42 43 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(); 49 action.init(fWindow); 50 action.run(a); 51 } 52 } 53 54 57 public void selectionChanged(final IAction action, final ISelection selection) { 58 } 60 } 61 | Popular Tags |