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.ui.IEditorActionDelegate;
9 import org.eclipse.ui.IEditorPart;
15 public abstract class AbstractJTidyEditorAction extends AbstractJTidyAction implements IEditorActionDelegate {
18 * @see org.eclipse.ui.IEditorActionDelegate#setActiveEditor(org.eclipse.jface.action.IAction, org.eclipse.ui.IEditorPart)
20 public void setActiveEditor(IAction action, IEditorPart targetEditor) {
21 // if (fShell == null) {
22 // fShell = targetEditor.getSite().getShell();
24 updateEditor(targetEditor);
30 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
32 public abstract void run(IAction action);
35 * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
37 public void selectionChanged(IAction action, ISelection selection) {
38 // Noo need to get a selection...
41 // * @see net.sourceforge.phpdt.tidy.actions.AbstractJTidyAction#getShell()
43 //protected Shell getShell() {