import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IEditorActionDelegate;
import org.eclipse.ui.IEditorPart;
* @since 13.01.2003
*/
public abstract class AbstractJTidyEditorAction extends AbstractJTidyAction implements IEditorActionDelegate {
- Shell fShell;
+// Shell fShell;
/* (non-Javadoc)
* @see org.eclipse.ui.IEditorActionDelegate#setActiveEditor(org.eclipse.jface.action.IAction, org.eclipse.ui.IEditorPart)
*/
public void setActiveEditor(IAction action, IEditorPart targetEditor) {
- if (fShell == null) {
- fShell = targetEditor.getSite().getShell();
- }
+// if (fShell == null) {
+// fShell = targetEditor.getSite().getShell();
+// }
updateEditor(targetEditor);
updateParent(action);
public void selectionChanged(IAction action, ISelection selection) {
// Noo need to get a selection...
}
- /* (non-Javadoc)
- * @see net.sourceforge.phpdt.tidy.actions.AbstractJTidyAction#getShell()
- */
-protected Shell getShell() {
- return fShell;
-}
+// /* (non-Javadoc)
+// * @see net.sourceforge.phpdt.tidy.actions.AbstractJTidyAction#getShell()
+// */
+//protected Shell getShell() {
+// return fShell;
+//}
}