intial version
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.jtidy / src / net / sourceforge / phpdt / tidy / actions / FormatWithJTidyAction.java
diff --git a/archive/net.sourceforge.phpeclipse.jtidy/src/net/sourceforge/phpdt/tidy/actions/FormatWithJTidyAction.java b/archive/net.sourceforge.phpeclipse.jtidy/src/net/sourceforge/phpdt/tidy/actions/FormatWithJTidyAction.java
new file mode 100644 (file)
index 0000000..2b4e6e0
--- /dev/null
@@ -0,0 +1,19 @@
+package net.sourceforge.phpdt.tidy.actions;
+
+import net.sourceforge.phpdt.tidy.JTidyConsole;
+import org.eclipse.jface.action.IAction;
+
+public class FormatWithJTidyAction extends AbstractJTidyObjectAction  {
+       
+       
+       /**
+        * @see IActionDelegate#run(IAction)
+        */
+       public void run(IAction action) {
+               JTidyConsole.clear();
+               parseSelection(true);
+               
+       }
+       
+
+}