1) Added missing strings for italic, underline and strike through.
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.jtidy / src / net / sourceforge / phpdt / tidy / actions / AbstractJTidyEditorAction.java
1 /**
2  * Created on 13.01.2003 by Jan Schulz
3  */
4 package net.sourceforge.phpdt.tidy.actions;
5
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;
10
11 /**
12  * @author jan
13  * @since 13.01.2003
14  */
15 public abstract class AbstractJTidyEditorAction extends AbstractJTidyAction implements IEditorActionDelegate {
16 //      Shell fShell;
17         /* (non-Javadoc)
18          * @see org.eclipse.ui.IEditorActionDelegate#setActiveEditor(org.eclipse.jface.action.IAction, org.eclipse.ui.IEditorPart)
19          */
20         public void setActiveEditor(IAction action, IEditorPart targetEditor) {
21 //              if (fShell == null) {
22 //                      fShell = targetEditor.getSite().getShell();
23 //              }
24                 updateEditor(targetEditor);
25
26                 updateParent(action);
27         }
28
29         /* (non-Javadoc)
30          * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
31          */
32         public abstract void run(IAction action);
33
34         /* (non-Javadoc)
35          * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
36          */
37         public void selectionChanged(IAction action, ISelection selection) {
38                 // Noo need to get a selection...
39         }
40 // /* (non-Javadoc)
41 // * @see net.sourceforge.phpdt.tidy.actions.AbstractJTidyAction#getShell()
42 // */
43 //protected Shell getShell() {
44 //      return fShell;
45 //}
46
47 }