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