misc changes
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.jtidy / plugin.xml
index 18d5609..7efbd1d 100644 (file)
@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <plugin
    id="net.sourceforge.phpdt.tidy"
-   name="Jtidy Plug-in"
-   version="1.0.1"
-   provider-name="Jan Schulz"
+   name="%pluginName"
+   version="1.0.2"
+   provider-name="%providerName"
    class="net.sourceforge.phpdt.tidy.JtidyPlugin">
 
    <runtime>
@@ -17,8 +17,8 @@
 
    <extension
          point="org.eclipse.ui.popupMenus">
-         <viewerContribution
-         id="net.sourceforge.phpdt.tidy.EditorPopUp"
+      <viewerContribution
+         id="net.sourceforge.phpdt.tidy.editorpopup"
          targetID="#TextEditorContext">
          <menu
                label="JTidy"
                id="net.sourceforge.phpdt.tidy.FormatEditorAction">
          </action>
       </viewerContribution>
+      <viewerContribution
+            targetID="#PHPEditorContext"
+            id="net.sourceforge.phpdt.tidy.editorpopup">
+         <menu
+               label="JTidy"
+               path="additions"
+               id="net.sourceforge.phpdt.tidy.menu2">
+            <separator
+                  name="group1">
+            </separator>
+         </menu>
+         <action
+               label="Check Markup"
+               class="net.sourceforge.phpdt.tidy.actions.ParseWithJTidyEditorAction"
+               menubarPath="net.sourceforge.phpdt.tidy.menu2/group1"
+               
+               id="net.sourceforge.phpdt.tidy.ParseEditorAction">
+         </action>
+         <action
+               label="Format"
+               class="net.sourceforge.phpdt.tidy.actions.FormatWithJTidyEditorAction"
+               menubarPath="net.sourceforge.phpdt.tidy.menu2/group1"
+              
+               id="net.sourceforge.phpdt.tidy.FormatEditorAction">
+         </action>
+      </viewerContribution> 
       <objectContribution
             objectClass="org.eclipse.core.resources.IFile"
             nameFilter="*.htm*"
-            id="net.sourceforge.phpdt.tidy.contribution1">
+            id="net.sourceforge.phpdt.tidy.filepopups">
          <menu
                label="JTidy"
                path="additions"
@@ -71,9 +97,7 @@
          </action>
       </objectContribution>
    </extension>
-   <extension
-         point="org.eclipse.ui.popupMenus">
-   </extension>
+
     <extension
          point="org.eclipse.ui.preferencePages">
           <page