6c1a25fc2b6b18d6db6481ea5c7fc60f9548b906
[phpeclipse.git] /
1 /**
2  * Created on 13.01.2003 by Jan Schulz
3  */
4 package net.sourceforge.phpdt.tidy.actions;
5
6 import net.sourceforge.phpdt.tidy.JTidyConsole;
7 import org.eclipse.jface.action.IAction;
8
9 /**
10  * @author jan
11  * @since 13.01.2003
12  */
13 public class FormatWithJTidyEditorAction extends AbstractJTidyEditorAction {
14
15
16         /* (non-Javadoc)
17          * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
18          */
19         public void run(IAction action) {
20                 JTidyConsole.clear();
21                 try {
22                         parseDocument(true);
23                 } catch (ParseFailedException e) {
24                         //LOGGING
25                 }
26         }
27
28
29 }