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