7efbd1daecfbab42ac01f685c2ee8d81000804f1
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.jtidy / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <plugin
3    id="net.sourceforge.phpdt.tidy"
4    name="%pluginName"
5    version="1.0.2"
6    provider-name="%providerName"
7    class="net.sourceforge.phpdt.tidy.JtidyPlugin">
8
9    <runtime>
10       <library name="jtidy_plugin.jar"/>
11    </runtime>
12    <requires>
13       <import plugin="org.eclipse.core.resources" export="true"/>
14       <import plugin="org.eclipse.ui" export="true"/>
15    </requires>
16
17
18    <extension
19          point="org.eclipse.ui.popupMenus">
20       <viewerContribution
21          id="net.sourceforge.phpdt.tidy.editorpopup"
22          targetID="#TextEditorContext">
23          <menu
24                label="JTidy"
25                path="additions"
26                id="net.sourceforge.phpdt.tidy.menu2">
27             <separator
28                   name="group1">
29             </separator>
30          </menu>
31          <action
32                label="Check Markup"
33                class="net.sourceforge.phpdt.tidy.actions.ParseWithJTidyEditorAction"
34                menubarPath="net.sourceforge.phpdt.tidy.menu2/group1"
35                
36                id="net.sourceforge.phpdt.tidy.ParseEditorAction">
37          </action>
38          <action
39                label="Format"
40                class="net.sourceforge.phpdt.tidy.actions.FormatWithJTidyEditorAction"
41                menubarPath="net.sourceforge.phpdt.tidy.menu2/group1"
42               
43                id="net.sourceforge.phpdt.tidy.FormatEditorAction">
44          </action>
45       </viewerContribution>
46       <viewerContribution
47             targetID="#PHPEditorContext"
48             id="net.sourceforge.phpdt.tidy.editorpopup">
49          <menu
50                label="JTidy"
51                path="additions"
52                id="net.sourceforge.phpdt.tidy.menu2">
53             <separator
54                   name="group1">
55             </separator>
56          </menu>
57          <action
58                label="Check Markup"
59                class="net.sourceforge.phpdt.tidy.actions.ParseWithJTidyEditorAction"
60                menubarPath="net.sourceforge.phpdt.tidy.menu2/group1"
61                
62                id="net.sourceforge.phpdt.tidy.ParseEditorAction">
63          </action>
64          <action
65                label="Format"
66                class="net.sourceforge.phpdt.tidy.actions.FormatWithJTidyEditorAction"
67                menubarPath="net.sourceforge.phpdt.tidy.menu2/group1"
68               
69                id="net.sourceforge.phpdt.tidy.FormatEditorAction">
70          </action>
71       </viewerContribution> 
72       <objectContribution
73             objectClass="org.eclipse.core.resources.IFile"
74             nameFilter="*.htm*"
75             id="net.sourceforge.phpdt.tidy.filepopups">
76          <menu
77                label="JTidy"
78                path="additions"
79                id="net.sourceforge.phpdt.tidy.menu1">
80             <separator
81                   name="group1">
82             </separator>
83          </menu>
84          <action
85                label="Check Markup"
86                class="net.sourceforge.phpdt.tidy.actions.ParseWithJTidyAction"
87                menubarPath="net.sourceforge.phpdt.tidy.menu1/group1"
88                enablesFor="+"
89                id="net.sourceforge.phpdt.tidy.ParseAction">
90          </action>
91          <action
92                label="Format"
93                class="net.sourceforge.phpdt.tidy.actions.FormatWithJTidyAction"
94                menubarPath="net.sourceforge.phpdt.tidy.menu1/group1"
95                enablesFor="+"
96                id="net.sourceforge.phpdt.tidy.FormatAction">
97          </action>
98       </objectContribution>
99    </extension>
100
101     <extension
102          point="org.eclipse.ui.preferencePages">
103           <page
104             name="HTML JTidy"
105             class="net.sourceforge.phpdt.tidy.preferences.JTidyGeneralPreferences"
106             id="net.sourceforge.phpdt.tidy.preferences.general">
107       </page>
108   <!--    <page
109             name="General"
110             class="net.sourceforge.phpdt.tidy.preferences.JTidyPreferences"
111             id="net.sourceforge.phpdt.tidy.preferences.JTidyPreferences"
112             category="net.sourceforge.phpdt.tidy.preferences.general">
113       </page> -->
114       <page
115                 name="Format"
116                 class="net.sourceforge.phpdt.tidy.preferences.JTidyOutputPreferences"
117                 id="net.sourceforge.phpdt.tidy.preferences.OutputFormat"
118                 category="net.sourceforge.phpdt.tidy.preferences.general">
119       </page>
120       <page
121                 name="Output"
122                 class="net.sourceforge.phpdt.tidy.preferences.JTidyOutputLookPreferences"
123                 id="net.sourceforge.phpdt.tidy.preferences.OutputLook"
124                 category="net.sourceforge.phpdt.tidy.preferences.general">
125       </page>
126       <page
127                 name="Indentation, Wrapping"
128                 class="net.sourceforge.phpdt.tidy.preferences.JTidyWrapIndentPreferences"
129                 id="net.sourceforge.phpdt.tidy.preferences.WrapIndent"
130                 category="net.sourceforge.phpdt.tidy.preferences.general">
131       </page>    
132       <page
133                 name="New Tags"
134                 class="net.sourceforge.phpdt.tidy.preferences.JTidyNewTagsPreferences"
135                 id="net.sourceforge.phpdt.tidy.preferences.NewTags"
136                 category="net.sourceforge.phpdt.tidy.preferences.general">
137       </page>
138    </extension>
139    <extension
140          point="org.eclipse.ui.views">
141       <view
142             name="JTidy Console"
143             icon="icons/obj16/jtidy.gif"
144             class="net.sourceforge.phpdt.tidy.JTidyConsole"
145             id="net.sourceforge.phpdt.tidy.consoleview">
146       </view>
147    </extension>
148
149 </plugin>