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