HTML Tidy plugin initial version
[phpeclipse.git] / net.sourceforge.phpeclipse / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <plugin
3    id="net.sourceforge.phpeclipse"
4    name="%pluginName"
5    version="1.0.6"
6    provider-name="%providerName"
7    class="net.sourceforge.phpeclipse.PHPeclipsePlugin">
8
9    <runtime>
10       <library name="phpeclipse.jar">
11          <export name="*"/>
12       </library>
13    </runtime>
14    <requires>
15       <import plugin="org.eclipse.core.resources"/>
16       <import plugin="org.eclipse.ui"/>
17       <import plugin="org.eclipse.help"/>
18       <import plugin="org.eclipse.swt"/>
19       <import plugin="org.eclipse.debug.ui"/>
20       <import plugin="org.apache.xerces"/>
21    </requires>
22
23
24    <extension
25          id="phpnature"
26          name="%naturePHP.name"
27          point="org.eclipse.core.resources.natures">
28       <runtime>
29          <run
30                class="net.sourceforge.phpeclipse.PHPProject">
31          </run>
32       </runtime>
33    </extension>
34    <extension
35          point="org.eclipse.team.core.fileTypes">
36       <fileTypes
37             type="text"
38             extension="php">
39       </fileTypes>
40       <fileTypes
41             type="text"
42             extension="php3">
43       </fileTypes>
44       <fileTypes
45             type="text"
46             extension="php4">
47       </fileTypes>
48       <fileTypes
49             type="text"
50             extension="inc">
51       </fileTypes>
52       <fileTypes
53             type="text"
54             extension="phtml">
55       </fileTypes>
56       <fileTypes
57             type="text"
58             extension="html">
59       </fileTypes>
60       <fileTypes
61             type="text"
62             extension="htm">
63       </fileTypes>
64       <fileTypes
65             type="text"
66             extension="xml">
67       </fileTypes>
68    </extension>
69    <extension
70          point="org.eclipse.ui.perspectives">
71       <perspective
72             name="%perspectivePHP.name"
73             icon="icons/obj16/php.gif"
74             class="net.sourceforge.phpeclipse.PHPPerspectiveFactory"
75             id="net.sourceforge.phpeclipse.PHPPerspective">
76       </perspective>
77    </extension>
78    <extension
79          point="org.eclipse.ui.newWizards">
80       <category
81             name="%newWizardCategory.name"
82             id="net.sourceforge.phpeclipse.wizards.NewWizardCategoryPHP">
83       </category>
84       <wizard
85             name="%newWizardPHPProject.name"
86             icon="icons/obj16/php.gif"
87             category="net.sourceforge.phpeclipse.wizards.NewWizardCategoryPHP"
88             class="net.sourceforge.phpeclipse.wizards.NewProjectCreationWizard"
89             project="true"
90             id="net.sourceforge.phpeclipse.wizards.NewWizardProjectCreation">
91          <description>
92             Create a new PHP project.
93          </description>
94       </wizard>
95       <wizard
96             name="%newWizardPHPFile.name"
97             icon="icons/obj16/phpedit.gif"
98             category="net.sourceforge.phpeclipse.wizards.NewWizardCategoryPHP"
99             class="net.sourceforge.phpeclipse.wizards.PHPFileWizard"
100             id="net.sourceforge.phpeclipse.wizards.PHPFileWizard">
101          <description>
102             Create a basic PHP file.
103          </description>
104       </wizard>
105 <!-- choochter's stuff -->        
106           <wizard
107             name="Xaraya Module"
108             icon="icons/obj16/php.gif"
109             category="net.sourceforge.phpeclipse.wizards.NewWizardCategoryPHP"
110             class=" com.xaraya.wizard.NewXarayaResourceWizard"
111             project="true"
112             id="net.sourceforge.phpeclipse.wizards.NewXarayaModuleWizard">
113          <description>
114             Create a Xaraya module.
115          </description>
116       </wizard>       
117    </extension>
118    <extension
119          point="org.eclipse.ui.projectNatureImages">
120       <image
121             icon="icons/obj16/php.gif"
122             natureId="net.sourceforge.phpeclipse.phpnature"
123             id="net.sourceforge.phpeclipse.ProjectNatureImagePHP">
124       </image>
125    </extension>
126    <extension
127          point="org.eclipse.ui.propertyPages">
128       <page
129             objectClass="org.eclipse.core.resources.IProject"
130             name="%propertyPagePHPProject.name"
131             class="net.sourceforge.phpeclipse.preferences.PHPProjectPropertyPage"
132             id="net.sourceforge.phpeclipse.preferences.PropertyPagePHPProject">
133          <filter
134                name="nature"
135                value="net.sourceforge.phpeclipse.phpnature">
136          </filter>
137       </page>
138           <page
139             objectClass="net.sourceforge.phpeclipse.PHPProject"
140             name="%propertyPagePHPProject.name"
141             class="net.sourceforge.phpeclipse.preferences.PHPProjectPropertyPage"
142             id="net.sourceforge.phpeclipse.preferences.PropertyPagePHPProject">
143          <filter
144                name="nature"
145                value="net.sourceforge.phpeclipse.phpnature">
146          </filter>
147       </page>
148    </extension>
149 <!--   <extension
150          point="org.eclipse.ui.views">
151       <view
152             name="%viewPHPResources.name"
153             icon="icons/obj16/php.gif"
154             class="net.sourceforge.phpeclipse.resourcesview.PHPResourcesView"
155             id="net.sourceforge.phpeclipse.resourcesview.ViewPHPResources">
156       </view>
157    </extension> -->
158    <extension
159          point="org.eclipse.ui.actionSets">
160       <actionSet
161             label="PHP/Apache"
162             description="Starting MySQL and Apache."
163             visible="true"
164             id="net.sourceforge.phpeclipse.PHPActionSet">
165          <menu
166                label="PHP/Apache"
167                id="net.sourceforge.phpeclipse.PHPMenu">
168             <separator
169                   name="phpeclipse">
170             </separator>
171          </menu>
172          <action
173                label="Restart Apache"
174                icon="icons/obj16/apache_restart.gif"
175                tooltip="Restart Apache"
176                class="net.sourceforge.phpeclipse.actions.PHPRestartApacheAction"
177                menubarPath="net.sourceforge.phpeclipse.PHPMenu/phpeclipse"
178                toolbarPath="Normal"
179                start="true"
180                id="net.sourceforge.phpeclipse.actions.PHPRestartApacheAction">
181          </action>
182          <action
183                label="Stop Apache"
184                icon="icons/obj16/apache_stop.gif"
185                tooltip="Stop Apache"
186                class="net.sourceforge.phpeclipse.actions.PHPStopApacheAction"
187                menubarPath="net.sourceforge.phpeclipse.PHPMenu/phpeclipse"
188                toolbarPath="Normal"
189                start="true"
190                id="net.sourceforge.phpeclipse.actions.PHPStopApacheAction">
191          </action>
192          <action
193                label="Start Apache"
194                icon="icons/obj16/apache.gif"
195                tooltip="Start Apache"
196                class="net.sourceforge.phpeclipse.actions.PHPStartApacheAction"
197                menubarPath="net.sourceforge.phpeclipse.PHPMenu/phpeclipse"
198                toolbarPath="Normal"
199                start="true"
200                id="net.sourceforge.phpeclipse.actions.PHPStartApacheAction">
201          </action>
202          <action
203                label="Start MySQL"
204                icon="icons/obj16/sql.gif"
205                tooltip="Start MySQL"
206                class="net.sourceforge.phpeclipse.actions.PHPStartMySQLAction"
207                menubarPath="net.sourceforge.phpeclipse.PHPMenu/phpeclipse"
208                toolbarPath="Normal"
209                start="true"
210                id="net.sourceforge.phpeclipse.actions.PHPStartMySQLAction">
211          </action>
212       </actionSet>
213       <actionSet
214                 id="net.sourceforge.phpeclipse.ui.CodingActionSet"
215         label="%phpActionSet.label"
216                 visible="false"
217                 description="%CodingActionSet.description">
218                 <menu
219             id="net.sourceforge.phpeclipse.ui.source.menu"
220             label="%php.menu.label"
221             path="edit">
222                 <separator name="editGroup"/>
223         </menu>
224         <action id="net.sourceforge.phpdt.ui.actions.Uncomment"
225                 menubarPath="net.sourceforge.phpeclipse.ui.source.menu/editGroup"
226                 label="%phpUncommentAction.label"
227                         retarget="true" />
228                         
229                 <action id="net.sourceforge.phpdt.ui.actions.Comment"
230                 menubarPath="net.sourceforge.phpeclipse.ui.source.menu/editGroup"
231                 label="%phpCommentAction.label"
232                         retarget="true" />
233           </actionSet> 
234    </extension>
235    <extension
236          point="org.eclipse.ui.actionDefinitions">
237       <actionDefinition
238             id="net.sourceforge.phpdt.ui.actions.comment">
239       </actionDefinition>
240       <actionDefinition
241             id="net.sourceforge.phpdt.ui.actions.uncomment">
242       </actionDefinition>
243    </extension> 
244    <extension
245          point="org.eclipse.ui.acceleratorSets">
246       <acceleratorSet
247             scopeId="org.eclipse.ui.textEditorScope"
248             configurationId="org.eclipse.ui.defaultAcceleratorConfiguration">
249          <accelerator
250                key="Ctrl+/"
251                id="net.sourceforge.phpdt.ui.actions.comment">
252          </accelerator>
253          <accelerator
254                key="Ctrl+\\"
255                id="net.sourceforge.phpdt.ui.actions.uncomment">
256          </accelerator>
257       </acceleratorSet>
258    </extension> 
259    <extension
260          point="org.eclipse.ui.editors">
261       <editor
262             name="%phpEditorName"
263             icon="icons/obj16/phpedit.gif"
264             extensions="php"
265             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
266             class="net.sourceforge.phpeclipse.phpeditor.PHPEditor"
267             id="net.sourceforge.phpeclipse.PHPEditor">
268       </editor>
269       <editor
270             name="%phpEditorName"
271             icon="icons/obj16/phpedit.gif"
272             extensions="php3"
273             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
274             class="net.sourceforge.phpeclipse.phpeditor.PHPEditor"
275             id="net.sourceforge.phpeclipse.PHPEditor">
276       </editor>
277       <editor
278             name="%phpEditorName"
279             icon="icons/obj16/phpedit.gif"
280             extensions="php4"
281             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
282             class="net.sourceforge.phpeclipse.phpeditor.PHPEditor"
283             id="net.sourceforge.phpeclipse.PHPEditor">
284       </editor>
285       <editor
286             name="%phpEditorName"
287             icon="icons/obj16/phpedit.gif"
288             extensions="inc"
289             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
290             class="net.sourceforge.phpeclipse.phpeditor.PHPEditor"
291             id="net.sourceforge.phpeclipse.PHPEditor">
292       </editor>
293       <editor
294             name="%phpEditorName"
295             icon="icons/obj16/phpedit.gif"
296             extensions="phtml"
297             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
298             class="net.sourceforge.phpeclipse.phpeditor.PHPEditor"
299             id="net.sourceforge.phpeclipse.PHPEditor">
300       </editor>
301       <editor
302             name="%phpEditorName"
303             icon="icons/obj16/htmledit.gif"
304             extensions="htm"
305             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
306             class="net.sourceforge.phpeclipse.phpeditor.PHPEditor"
307             id="net.sourceforge.phpeclipse.PHPEditor">
308       </editor>
309       <editor
310             name="%phpEditorName"
311             icon="icons/obj16/htmledit.gif"
312             extensions="html"
313             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
314             class="net.sourceforge.phpeclipse.phpeditor.PHPEditor"
315             id="net.sourceforge.phpeclipse.PHPEditor">
316       </editor>
317       <editor
318             name="%phpEditorName"
319             icon="icons/obj16/xmledit.gif"
320             extensions="xml"
321             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
322             class="net.sourceforge.phpeclipse.phpeditor.PHPEditor"
323             id="net.sourceforge.phpeclipse.PHPEditor">
324       </editor>
325    </extension>
326    <extension
327          point="org.eclipse.ui.popupMenus">
328       <objectContribution
329             objectClass="org.eclipse.core.resources.IFile"
330             nameFilter="*.php"
331             id="net.sourceforge.phpeclipse.actions.externalParserAction">
332          <action
333                label="Run External PHP Parser"
334                class="net.sourceforge.phpeclipse.actions.PHPExternalParserAction"
335                menubarPath="additions"
336                id="net.sourceforge.phpeclipse.actions.externalParserAction">
337          </action>
338       </objectContribution>
339       <objectContribution
340             objectClass="org.eclipse.core.resources.IFile"
341             nameFilter="*.php3"
342             id="net.sourceforge.phpeclipse.actions.externalParserAction">
343          <action
344                label="Run External PHP Parser"
345                class="net.sourceforge.phpeclipse.actions.PHPExternalParserAction"
346                menubarPath="additions"
347                id="net.sourceforge.phpeclipse.actions.externalParserAction">
348          </action>
349       </objectContribution>
350       <objectContribution
351             objectClass="org.eclipse.core.resources.IFile"
352             nameFilter="*.php4"
353             id="net.sourceforge.phpeclipse.actions.externalParserAction">
354          <action
355                label="Run External PHP Parser"
356                class="net.sourceforge.phpeclipse.actions.PHPExternalParserAction"
357                menubarPath="additions"
358                id="net.sourceforge.phpeclipse.actions.externalParserAction">
359          </action>
360       </objectContribution>
361       <objectContribution
362             objectClass="org.eclipse.core.resources.IFile"
363             nameFilter="*.inc"
364             id="net.sourceforge.phpeclipse.actions.externalParserAction">
365          <action
366                label="Run External PHP Parser"
367                class="net.sourceforge.phpeclipse.actions.PHPExternalParserAction"
368                menubarPath="additions"
369                id="net.sourceforge.phpeclipse.actions.externalParserAction">
370          </action>
371       </objectContribution>
372       <objectContribution
373             objectClass="org.eclipse.core.resources.IFile"
374             nameFilter="*.phtml"
375             id="net.sourceforge.phpeclipse.actions.externalParserAction">
376          <action
377                label="Run External PHP Parser"
378                class="net.sourceforge.phpeclipse.actions.PHPExternalParserAction"
379                menubarPath="additions"
380                id="net.sourceforge.phpeclipse.actions.externalParserAction">
381          </action>
382       </objectContribution>
383       <objectContribution
384             objectClass="org.eclipse.core.resources.IFile"
385             nameFilter="*.php"
386             id="net.sourceforge.phpeclipse.actions.popupShowAction">
387          <action
388                label="Open PHP Browser"
389                class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
390                menubarPath="additions"
391                id="net.sourceforge.phpeclipse.actions.showAction">
392          </action>
393       </objectContribution>
394       <objectContribution
395             objectClass="org.eclipse.core.resources.IFile"
396             nameFilter="*.php3"
397             id="net.sourceforge.phpeclipse.actions.popupShowAction">
398          <action
399                label="Open PHP Browser"
400                class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
401                menubarPath="additions"
402                id="net.sourceforge.phpeclipse.actions.showAction">
403          </action>
404       </objectContribution>
405       <objectContribution
406             objectClass="org.eclipse.core.resources.IFile"
407             nameFilter="*.php4"
408             id="net.sourceforge.phpeclipse.actions.popupShowAction">
409          <action
410                label="Open PHP Browser"
411                class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
412                menubarPath="additions"
413                id="net.sourceforge.phpeclipse.actions.showAction">
414          </action>
415       </objectContribution>
416       <objectContribution
417             objectClass="org.eclipse.core.resources.IFile"
418             nameFilter="*.inc"
419             id="net.sourceforge.phpeclipse.actions.popupShowAction">
420          <action
421                label="Open PHP Browser"
422                class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
423                menubarPath="additions"
424                id="net.sourceforge.phpeclipse.actions.showAction">
425          </action>
426       </objectContribution>
427       <objectContribution
428             objectClass="org.eclipse.core.resources.IFile"
429             nameFilter="*.phtml"
430             id="net.sourceforge.phpeclipse.actions.popupShowAction">
431          <action
432                label="Open PHP Browser"
433                class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
434                menubarPath="additions"
435                id="net.sourceforge.phpeclipse.actions.showAction">
436          </action>
437       </objectContribution>
438        
439           <viewerContribution 
440                 id="net.sourceforge.phpdt.ui.PHPEditorPopupActions" 
441                 targetID="#PHPRulerContext">
442                 <action
443                         id="org.eclipse.ui.texteditor.TaskRulerAction"
444                         menubarPath="add"
445                         label="%AddTask.label"
446                         tooltip="%AddTask.tooltip"
447             helpContextId="org.eclipse.ui.AddTask_action_context"
448                         class="org.eclipse.ui.texteditor.TaskRulerAction">
449                 </action>
450                 <action
451                         id="org.eclipse.ui.texteditor.BookmarkRulerAction"
452                         menubarPath="add"
453                         label="%AddBookmark.label"
454                         tooltip="%AddBookmark.tooltip"
455             helpContextId="org.eclipse.ui.bookmark_action_context"
456                         class="org.eclipse.ui.texteditor.BookmarkRulerAction">
457                 </action>
458           </viewerContribution>
459    </extension>
460    <extension point="org.eclipse.ui.editorActions">
461         <editorContribution
462                 id="org.eclipse.ui.texteditor.ruler.actions"
463                 targetID="net.sourceforge.phpeclipse.PHPEditor">
464
465                 <action
466                         id="org.eclipse.ui.texteditor.BookmarkRulerAction"
467                         actionID="RulerDoubleClick"
468                         label="%Dummy.label"
469             helpContextId="org.eclipse.ui.bookmark_action_context"
470                         class="org.eclipse.ui.texteditor.BookmarkRulerAction">
471                 </action>
472         </editorContribution>
473    </extension>
474    <extension
475          point="org.eclipse.ui.preferencePages">
476       <page
477             name="PHP"
478             class="net.sourceforge.phpeclipse.PHPEclipseBasePreferencePage"
479             id="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage">
480       </page>
481       <page
482             name="Editor"
483             category="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
484             class="net.sourceforge.phpeclipse.PHPSyntaxEditorPreferencePage"
485             id="net.sourceforge.phpeclipse.preference.PHPSyntaxEditorPreferencePage">
486       </page>
487       <page
488             name="Outline"
489             category="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
490             class="net.sourceforge.phpeclipse.PHPOutlinePreferencePage"
491             id="net.sourceforge.phpeclipse.preference.PHPOutlinePreferencePage">
492       </page>
493       <page 
494             name="Templates"
495             category= "net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
496                         class="net.sourceforge.phpdt.internal.ui.preferences.TemplatePreferencePage"
497                         id="net.sourceforge.phpeclipse.preference.TemplatePreferencePage">
498           </page>
499       <page
500             name="Language Settings"
501             category="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
502             class="net.sourceforge.phpeclipse.PHPLanguagePreferencePage"
503             id="net.sourceforge.phpeclipse.preference.PHPLanguagePreferencePage">
504       </page>     
505    </extension>
506    <extension
507          point="org.eclipse.ui.documentProviders">
508       <provider
509             extensions="%phpFileExtension"
510             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
511             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
512       </provider>
513    </extension>
514    <extension
515          point="org.eclipse.ui.documentProviders">
516       <provider
517             extensions="%php3FileExtension"
518             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
519             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
520       </provider>
521    </extension>
522    <extension
523          point="org.eclipse.ui.documentProviders">
524       <provider
525             extensions="%php4FileExtension"
526             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
527             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
528       </provider>
529    </extension>
530    <extension
531          point="org.eclipse.ui.documentProviders">
532       <provider
533             extensions="%incFileExtension"
534             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
535             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
536       </provider>
537    </extension>
538    <extension
539          point="org.eclipse.ui.documentProviders">
540       <provider
541             extensions="%phtmlFileExtension"
542             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
543             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
544       </provider>
545    </extension>
546    <extension
547          point="org.eclipse.ui.documentProviders">
548       <provider
549             extensions="%htmlFileExtension"
550             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
551             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
552       </provider>
553    </extension>
554    <extension
555          point="org.eclipse.ui.documentProviders">
556       <provider
557             extensions="%htmFileExtension"
558             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
559             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
560       </provider>
561    </extension>
562    <extension
563          point="org.eclipse.ui.documentProviders">
564       <provider
565             extensions="%xmlFileExtension"
566             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
567             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
568       </provider>
569    </extension>
570    <extension
571          point="org.eclipse.ui.views">
572       <view
573             name="%phpConsoleView"
574             icon="icons/obj16/php.gif"
575             class="net.sourceforge.phpeclipse.views.PHPConsole"
576             id="net.sourceforge.phpeclipse.views.phpconsoleview">
577       </view>
578    </extension>
579
580 </plugin>