Switched to Eclipse 2.1 development
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.jtidy / src / net / sourceforge / phpdt / tidy / actions / ParseWithJTidyEditorAction.java
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
8 import org.eclipse.jface.action.IAction;
9
10 /**
11  * @author jan
12  * @since 13.01.2003
13  */
14 public class ParseWithJTidyEditorAction extends AbstractJTidyEditorAction {
15
16         
17
18         /* (non-Javadoc)
19          * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
20          */
21         public void run(IAction action) {
22                 JTidyConsole.clear();
23                 try {
24                         parseDocument(false);
25                 } catch (ParseFailedException e) {
26                         //LOGGING
27                 }
28         }
29
30         
31
32 }