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.IObjectActionDelegate;
10 import org.eclipse.ui.IWorkbenchPart;
16 public abstract class AbstractJTidyObjectAction extends AbstractJTidyAction implements IObjectActionDelegate {
19 * @see org.eclipse.ui.IObjectActionDelegate#setActivePart(org.eclipse.jface.action.IAction, org.eclipse.ui.IWorkbenchPart)
21 public void setActivePart(IAction action, IWorkbenchPart targetPart) {
22 fShell = targetPart.getSite().getShell();
23 // No need to do something here...
26 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
28 public abstract void run(IAction action);
30 * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
32 public void selectionChanged(IAction action, ISelection selection) {
33 updateSelection(selection);
38 * @see net.sourceforge.phpdt.tidy.actions.AbstractJTidyAction#getShell()
40 protected Shell getShell() {