2 * Created on 13.01.2003 by Jan Schulz
4 package net.sourceforge.phpdt.tidy.actions;
6 import org.eclipse.jface.action.IAction;
7 import org.eclipse.jface.viewers.ISelection;
8 import org.eclipse.swt.widgets.Shell;
9 import org.eclipse.ui.IEditorActionDelegate;
10 import org.eclipse.ui.IEditorPart;
16 public abstract class AbstractJTidyEditorAction extends AbstractJTidyAction implements IEditorActionDelegate {
19 * @see org.eclipse.ui.IEditorActionDelegate#setActiveEditor(org.eclipse.jface.action.IAction, org.eclipse.ui.IEditorPart)
21 public void setActiveEditor(IAction action, IEditorPart targetEditor) {
23 fShell = targetEditor.getSite().getShell();
25 updateEditor(targetEditor);
31 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
33 public abstract void run(IAction action);
36 * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
38 public void selectionChanged(IAction action, ISelection selection) {
39 // Noo need to get a selection...
42 * @see net.sourceforge.phpdt.tidy.actions.AbstractJTidyAction#getShell()
44 protected Shell getShell() {