Eclipse 3.x compatible;
[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.10"
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.ui"/>
16       <import plugin="org.eclipse.ui.console"/>
17       <import plugin="org.eclipse.core.resources"/>
18       <import plugin="org.eclipse.search"/>
19       <import plugin="org.eclipse.debug.core"/>
20       <import plugin="org.eclipse.debug.ui"/>
21       <import plugin="org.eclipse.compare"/>
22       <import plugin="org.eclipse.core.filebuffers"/>
23       <import plugin="org.eclipse.jface.text"/>
24       <import plugin="org.eclipse.ui.workbench.texteditor"/>
25       <import plugin="org.eclipse.ui.ide"/>
26       <import plugin="org.eclipse.ui.views"/>
27       <import plugin="org.eclipse.ui.editors"/>
28       <import plugin="org.eclipse.ui.externaltools"/>
29       <import plugin="org.eclipse.help"/>
30       <import plugin="org.eclipse.swt"/>
31       <import plugin="org.eclipse.search"/>
32       <import plugin="org.apache.xerces"/>
33       <import plugin="org.eclipse.update.ui"/>
34    </requires>
35
36    <extension
37          id="phpnature"
38          name="%naturePHP.name"
39          point="org.eclipse.core.resources.natures">
40       <runtime>
41          <run
42           class="net.sourceforge.phpdt.internal.core.JavaProject">
43          </run>
44       </runtime>
45    </extension>
46    
47    <extension
48          id="parserbuilder"
49          name="PHP Builder"
50          point="org.eclipse.core.resources.builders">
51       <builder>
52          <run  
53            class="net.sourceforge.phpdt.internal.core.builder.PHPBuilder">
54          </run>
55       </builder>
56    </extension>
57    
58    <extension-point name="%phpEditorTextHoversName" id="phpEditorTextHovers" schema="schema/phpEditorTextHovers.exsd"/>
59    <!-- =================================================================================== -->
60    <!-- Extension: PHP Markers                                                             -->
61    <!-- =================================================================================== -->
62
63    <!-- Java problems -->
64
65    <extension id="problem" point="org.eclipse.core.resources.markers" name="%phpProblemName">
66         <super type="org.eclipse.core.resources.problemmarker"/>
67         <super type="org.eclipse.core.resources.textmarker"/>
68         <persistent value="true"/>
69         <attribute name="id"/>
70         <attribute name="flags"/>
71         <attribute name="arguments"/>
72    </extension>  
73
74    <extension
75          point="org.eclipse.team.core.fileTypes">
76       <fileTypes
77             type="text"
78             extension="php">
79       </fileTypes>
80       <fileTypes
81             type="text"
82             extension="php3">
83       </fileTypes>
84       <fileTypes
85             type="text"
86             extension="php4">
87       </fileTypes>
88       <fileTypes
89             type="text"
90             extension="inc">
91       </fileTypes>
92       <fileTypes
93             type="text"
94             extension="phtml">
95       </fileTypes>
96       <fileTypes
97             type="text"
98             extension="html">
99       </fileTypes>
100       <fileTypes
101             type="text"
102             extension="htm">
103       </fileTypes>
104       <fileTypes
105             type="text"
106             extension="xml">
107       </fileTypes>
108       <fileTypes
109             type="text"
110             extension="tpl">
111       </fileTypes>
112    </extension>
113    
114    <extension
115       point="net.sourceforge.phpeclipse.phpEditorTextHovers">
116    <hover
117          class="net.sourceforge.phpdt.internal.ui.text.java.hover.BestMatchHover"
118          id="net.sourceforge.phpdt.ui.BestMatchHover"
119          label="%sequentialHover"
120          description="%sequentialHoverDescription">
121    </hover>
122 </extension>
123
124 <extension
125       point="net.sourceforge.phpeclipse.phpEditorTextHovers">
126    <hover
127          class="net.sourceforge.phpdt.internal.ui.text.java.hover.JavaSourceHover"
128          id="net.sourceforge.phpdt.ui.JavaSourceHover"
129          label="%sourceHover"
130          description="%sourceHoverDescription">
131    </hover>
132 </extension>
133    <extension
134       point="net.sourceforge.phpeclipse.phpEditorTextHovers">
135    <hover
136          class="net.sourceforge.phpdt.internal.ui.text.java.hover.JavaProblemHover"
137          id="net.sourceforge.phpdt.ui.ProblemHover"
138          label="%problemHover" 
139          description="%problemHoverDescription">
140    </hover>
141    </extension>r
142
143    <extension
144          point="org.eclipse.ui.perspectives">
145       <perspective
146             name="%perspectivePHP.name"
147             icon="icons/obj16/php.gif"
148             class="net.sourceforge.phpeclipse.PHPPerspectiveFactory"
149             id="net.sourceforge.phpeclipse.PHPPerspective">
150       </perspective>
151    </extension>
152    <extension
153          point="org.eclipse.ui.newWizards">
154       <category
155             name="%newWizardCategory.name"
156             id="net.sourceforge.phpeclipse.wizards.NewWizardCategoryPHP">
157       </category>
158       <wizard
159             name="%newWizardPHPProject.name"
160             icon="icons/obj16/php.gif"
161             category="net.sourceforge.phpeclipse.wizards.NewWizardCategoryPHP"
162             class="net.sourceforge.phpeclipse.wizards.NewProjectCreationWizard"
163             project="true"
164             id="net.sourceforge.phpeclipse.wizards.NewWizardProjectCreation">
165          <description>
166             Create a new PHP project.
167          </description>
168       </wizard>
169 <!--    <wizard
170                 id="net.sourceforge.phpdt.internal.ui.wizards.NewClassCreationWizard"
171                 name="%NewPHPClass.label"
172                 class="net.sourceforge.phpdt.internal.ui.wizards.NewClassCreationWizard"
173                 category="net.sourceforge.phpeclipse.wizards.NewWizardCategoryPHP"
174                 icon="icons/ctool16/newclass_wiz.gif">
175                 <description>%NewPHPClass.description</description>
176         </wizard>      
177       -->
178 <!--
179 <this wizard replaces it as it works - maybe not as pretty but still>
180
181       <wizard
182             name="%newWizardPHPProject.name"
183             icon="icons/obj16/php.gif"
184             category="net.sourceforge.phpeclipse.wizards.NewWizardCategoryPHP"
185             class="net.sourceforge.phpeclipse.wizards.TempnewPHPProject"
186             project="true"
187             id="net.sourceforge.phpeclipse.wizards.NewWizardProjectCreation">
188          <description>
189             Create a new PHP project.
190          </description>
191       </wizard> -->
192       <wizard
193             name="%newWizardPHPFile.name"
194             icon="icons/obj16/phpedit.gif"
195             category="net.sourceforge.phpeclipse.wizards.NewWizardCategoryPHP"
196             class="net.sourceforge.phpeclipse.wizards.PHPFileWizard"
197             id="net.sourceforge.phpeclipse.wizards.PHPFileWizard">
198          <description>
199             Create a basic PHP file.
200          </description>
201       </wizard>
202 <!-- choochter's stuff -->
203       <wizard
204             name="Xaraya Module"
205             icon="icons/obj16/php.gif"
206             category="net.sourceforge.phpeclipse.wizards.NewWizardCategoryPHP"
207             class="com.xaraya.wizard.NewXarayaResourceWizard"
208             project="true"
209             id="net.sourceforge.phpeclipse.wizards.NewXarayaModuleWizard">
210          <description>
211             Create a Xaraya module.
212          </description>
213       </wizard>
214    </extension>
215    <extension point="org.eclipse.ui.exportWizards">
216      <wizard name="%ExportWizards.Obfuscator" 
217              icon="icons/ctool16/exportdir_wiz.gif" 
218              class="net.sourceforge.phpeclipse.obfuscator.export.ObfuscatorExportWizard" 
219              id="net.sourceforge.phpeclipse.obfuscator.export.ObfuscatorExportWizard">
220      <description>%ExportWizards.ObfuscatorDescription</description> 
221      <selection class="org.eclipse.core.resources.IResource" /> 
222      </wizard>
223   </extension>
224    <extension
225          point="org.eclipse.ui.projectNatureImages">
226       <image
227             icon="icons/obj16/php.gif"
228             natureId="net.sourceforge.phpeclipse.phpnature"
229             id="net.sourceforge.phpeclipse.ProjectNatureImagePHP">
230       </image>
231    </extension>
232    <extension
233          point="org.eclipse.ui.propertyPages">
234 <!--      <page
235             objectClass="org.eclipse.core.resources.IProject"
236             name="%propertyPagePHPProject.name"
237             class="net.sourceforge.phpeclipse.preferences.PHPProjectPropertyPage"
238             id="net.sourceforge.phpeclipse.preferences.PHPProjectPropertyPage">
239          <filter
240                name="nature"
241                value="net.sourceforge.phpeclipse.phpnature">
242          </filter>
243       </page> -->
244       <page
245             objectClass="org.eclipse.core.resources.IProject"
246             name="PHP Obfuscator"
247             class="net.sourceforge.phpeclipse.preferences.PHPObfuscatorPropertyPage"
248             id="net.sourceforge.phpeclipse.preferences.PHPObfuscatorPropertyPage">
249          <filter
250                name="nature"
251                value="net.sourceforge.phpeclipse.phpnature">
252          </filter>
253       </page>
254    </extension>
255 <!--   <extension
256          point="org.eclipse.ui.views">
257       <view
258             name="%viewPHPResources.name"
259             icon="icons/obj16/php.gif"
260             class="net.sourceforge.phpeclipse.resourcesview.PHPResourcesView"
261             id="net.sourceforge.phpeclipse.resourcesview.ViewPHPResources">
262       </view>
263    </extension> -->
264    <extension
265          point="org.eclipse.ui.editors">
266       <editor
267             name="%phpEditorName"
268             default="true"
269             icon="icons/obj16/phpedit.gif"
270             extensions="php"
271             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
272             class="net.sourceforge.phpeclipse.phpeditor.PHPUnitEditor"
273             id="net.sourceforge.phpeclipse.PHPUnitEditor">
274       </editor>
275       <editor
276             name="%phpEditorName"
277             default="true"
278             icon="icons/obj16/phpedit.gif"
279             extensions="php3"
280             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
281             class="net.sourceforge.phpeclipse.phpeditor.PHPUnitEditor"
282             id="net.sourceforge.phpeclipse.PHPUnitEditor">
283       </editor>
284       <editor
285             name="%phpEditorName"
286             default="true"
287             icon="icons/obj16/phpedit.gif"
288             extensions="php4"
289             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
290             class="net.sourceforge.phpeclipse.phpeditor.PHPUnitEditor"
291             id="net.sourceforge.phpeclipse.PHPUnitEditor">
292       </editor>
293       <editor
294             name="%phpEditorName"
295             default="true"
296             icon="icons/obj16/phpedit.gif"
297             extensions="inc"
298             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
299             class="net.sourceforge.phpeclipse.phpeditor.PHPUnitEditor"
300             id="net.sourceforge.phpeclipse.PHPUnitEditor">
301       </editor>
302       <editor
303             name="%phpEditorName"
304             default="true"
305             icon="icons/obj16/phpedit.gif"
306             extensions="phtml"
307             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
308             class="net.sourceforge.phpeclipse.phpeditor.PHPUnitEditor"
309             id="net.sourceforge.phpeclipse.PHPUnitEditor">
310       </editor>
311       <editor
312             name="%phpEditorName"
313             default="true"
314             icon="icons/obj16/htmledit.gif"
315             extensions="htm"
316             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
317             class="net.sourceforge.phpeclipse.phpeditor.PHPUnitEditor"
318             id="net.sourceforge.phpeclipse.PHPUnitEditor">
319       </editor>
320       <editor
321             name="%phpEditorName"
322             default="true"
323             icon="icons/obj16/htmledit.gif"
324             extensions="html"
325             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
326             class="net.sourceforge.phpeclipse.phpeditor.PHPUnitEditor"
327             id="net.sourceforge.phpeclipse.PHPUnitEditor">
328       </editor>
329       <editor
330             name="%phpEditorName"
331             default="true"
332             icon="icons/obj16/xmledit.gif"
333             extensions="xml"
334             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
335             class="net.sourceforge.phpeclipse.phpeditor.PHPUnitEditor"
336             id="net.sourceforge.phpeclipse.PHPUnitEditor">
337       </editor>
338       <editor
339             name="%phpEditorName"
340             default="true"
341             icon="icons/obj16/htmledit.gif"
342             extensions="tpl"
343             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
344             class="net.sourceforge.phpeclipse.phpeditor.PHPUnitEditor"
345             id="net.sourceforge.phpeclipse.PHPUnitEditor">
346       </editor>
347    </extension>
348    <extension
349          point="org.eclipse.ui.actionSets">
350       <actionSet
351             label="PHP/Apache"
352             visible="true"
353             id="net.sourceforge.phpeclipse.PHPActionSet">
354          <menu
355                label="PHP/Apache"
356                id="net.sourceforge.phpeclipse.PHPMenu">
357             <separator
358                   name="phpeclipse">
359             </separator>
360          </menu>
361          <action
362                label="Restart Apache"
363                icon="icons/obj16/apache_restart.gif"
364                tooltip="Restart Apache"
365                class="net.sourceforge.phpeclipse.actions.PHPRestartApacheAction"
366                menubarPath="net.sourceforge.phpeclipse.PHPMenu/phpeclipse"
367                toolbarPath="Normal"
368                id="net.sourceforge.phpeclipse.actions.PHPRestartApacheAction">
369          </action>
370          <action
371                label="Stop Apache"
372                icon="icons/obj16/apache_stop.gif"
373                tooltip="Stop Apache"
374                class="net.sourceforge.phpeclipse.actions.PHPStopApacheAction"
375                menubarPath="net.sourceforge.phpeclipse.PHPMenu/phpeclipse"
376                toolbarPath="Normal"
377                id="net.sourceforge.phpeclipse.actions.PHPStopApacheAction">
378          </action>
379          <action
380                label="Start Apache"
381                icon="icons/obj16/apache.gif"
382                tooltip="Start Apache"
383                class="net.sourceforge.phpeclipse.actions.PHPStartApacheAction"
384                menubarPath="net.sourceforge.phpeclipse.PHPMenu/phpeclipse"
385                toolbarPath="Normal"
386                id="net.sourceforge.phpeclipse.actions.PHPStartApacheAction">
387          </action>
388          <action
389                label="Start MySQL"
390                icon="icons/obj16/sql.gif"
391                tooltip="Start MySQL"
392                class="net.sourceforge.phpeclipse.actions.PHPStartMySQLAction"
393                menubarPath="net.sourceforge.phpeclipse.PHPMenu/phpeclipse"
394                toolbarPath="Normal"
395                id="net.sourceforge.phpeclipse.actions.PHPStartMySQLAction">
396          </action>
397       </actionSet>
398       <actionSet
399             label="%CodingActionSet.label"
400             visible="false"
401             id="net.sourceforge.phpeclipse.ui.CodingActionSet">
402 <!-- =========================================================================== -->
403 <!-- Source Menu                                                                 -->
404 <!-- =========================================================================== -->
405          <menu
406                label="%SourceMenu.label"
407                path="edit"
408                id="net.sourceforge.phpeclipse.ui.source.menu">
409                 <separator name="editGroup" />
410          </menu>
411          <action
412                definitionId="net.sourceforge.phpeclipse.phpeditor.format"
413                label="%FormatAction.label"
414                retarget="true"
415                menubarPath="net.sourceforge.phpeclipse.ui.source.menu/editGroup"
416                id="net.sourceforge.phpeclipse.phpeditor.Format">
417          </action>
418          <action
419                label="%ShiftLeftAction.label"
420                retarget="true"
421                menubarPath="net.sourceforge.phpeclipse.ui.source.menu/editGroup"
422                id="net.sourceforge.phpeclipse.phpeditor.ShiftLeft">
423          </action>
424          <action
425                label="%ShiftRightAction.label"
426                retarget="true"
427                menubarPath="net.sourceforge.phpeclipse.ui.source.menu/editGroup"
428                id="net.sourceforge.phpeclipse.phpeditor.ShiftRight">
429          </action>
430          <action
431                definitionId="net.sourceforge.phpeclipse.phpeditor.uncomment"
432                label="%UncommentAction.label"
433                retarget="true"
434                menubarPath="net.sourceforge.phpeclipse.ui.source.menu/editGroup"
435                id="net.sourceforge.phpeclipse.phpeditor.Uncomment">
436          </action>
437          <action
438                definitionId="net.sourceforge.phpeclipse.phpeditor.comment"
439                label="%CommentAction.label"
440                retarget="true"
441                menubarPath="net.sourceforge.phpeclipse.ui.source.menu/editGroup"
442                id="net.sourceforge.phpeclipse.phpeditor.Comment">
443          </action>
444       </actionSet>
445    </extension>
446    <extension
447          point="org.eclipse.ui.actionSetPartAssociations">
448       <actionSetPartAssociation
449             targetID="net.sourceforge.phpeclipse.ui.CodingActionSet">
450          <part id="net.sourceforge.phpeclipse.PHPUnitEditor" />
451       </actionSetPartAssociation>
452    </extension>
453 <!-- =========================================================================== -->
454 <!-- PHP Editor Action Definition IDs -->
455 <!-- =========================================================================== -->
456    <extension
457          point="org.eclipse.ui.actionDefinitions">
458 <!-- edit -->
459       <actionDefinition
460             id="net.sourceforge.phpeclipse.phpeditor.ContentAssistProposal">
461       </actionDefinition>
462 <!-- source -->
463       <actionDefinition
464             id="net.sourceforge.phpeclipse.phpeditor.Comment">
465       </actionDefinition>
466       <actionDefinition
467             id="net.sourceforge.phpeclipse.phpeditor.Uncomment">
468       </actionDefinition>
469       <actionDefinition
470             id="net.sourceforge.phpeclipse.phpeditor.Format">
471       </actionDefinition>
472       <actionDefinition
473             id="net.sourceforge.phpeclipse.ui.edit.text.php.show.outline">
474       </actionDefinition>
475       <actionDefinition
476             id="net.sourceforge.phpeclipse.ui.navigate.php.open.structure">
477       </actionDefinition>
478       <actionDefinition
479             id="net.sourceforge.phpeclipse.ui.edit.text.php.show.next.problem">
480       </actionDefinition>
481       <actionDefinition
482             id="net.sourceforge.phpeclipse.ui.edit.text.php.show.previous.problem">
483       </actionDefinition>
484    </extension>
485 <!--   <extension
486          point="org.eclipse.ui.acceleratorSets">
487       <acceleratorSet
488             scopeId="org.eclipse.ui.textEditorScope"
489             configurationId="org.eclipse.ui.defaultAcceleratorConfiguration">
490          <accelerator
491                key="Ctrl+/"
492                id="net.sourceforge.phpdt.ui.actions.comment">
493          </accelerator>
494          <accelerator
495                key="Ctrl+\\"
496                id="net.sourceforge.phpdt.ui.actions.uncomment">
497          </accelerator>
498       </acceleratorSet>
499    </extension> -->
500    
501    <extension
502          point="org.eclipse.ui.popupMenus">
503        <objectContribution
504             objectClass="org.eclipse.core.resources.IProject"
505             id="net.sourceforge.phpeclipse.actions.PHPDocumentorAction">
506          <action
507                label="Run PHPDocumentor"
508                class="net.sourceforge.phpeclipse.actions.PHPDocumentorAction"
509                menubarPath="additions"
510                id="net.sourceforge.phpeclipse.actions.PHPDocumentorAction">
511          </action>
512       </objectContribution>
513       <objectContribution
514             objectClass="org.eclipse.core.resources.IFile"
515             nameFilter="*.php"
516             id="net.sourceforge.phpeclipse.actions.externalParserAction">
517          <action
518                label="Run External PHP Parser"
519                class="net.sourceforge.phpeclipse.actions.PHPExternalParserAction"
520                menubarPath="additions"
521                id="net.sourceforge.phpeclipse.actions.externalParserAction">
522          </action>
523       </objectContribution>
524       <objectContribution
525             objectClass="org.eclipse.core.resources.IFile"
526             nameFilter="*.php3"
527             id="net.sourceforge.phpeclipse.actions.externalParserAction">
528          <action
529                label="Run External PHP Parser"
530                class="net.sourceforge.phpeclipse.actions.PHPExternalParserAction"
531                menubarPath="additions"
532                id="net.sourceforge.phpeclipse.actions.externalParserAction">
533          </action>
534       </objectContribution>
535       <objectContribution
536             objectClass="org.eclipse.core.resources.IFile"
537             nameFilter="*.php4"
538             id="net.sourceforge.phpeclipse.actions.externalParserAction">
539          <action
540                label="Run External PHP Parser"
541                class="net.sourceforge.phpeclipse.actions.PHPExternalParserAction"
542                menubarPath="additions"
543                id="net.sourceforge.phpeclipse.actions.externalParserAction">
544          </action>
545       </objectContribution>
546       <objectContribution
547             objectClass="org.eclipse.core.resources.IFile"
548             nameFilter="*.inc"
549             id="net.sourceforge.phpeclipse.actions.externalParserAction">
550          <action
551                label="Run External PHP Parser"
552                class="net.sourceforge.phpeclipse.actions.PHPExternalParserAction"
553                menubarPath="additions"
554                id="net.sourceforge.phpeclipse.actions.externalParserAction">
555          </action>
556       </objectContribution>
557       <objectContribution
558             objectClass="org.eclipse.core.resources.IFile"
559             nameFilter="*.phtml"
560             id="net.sourceforge.phpeclipse.actions.externalParserAction">
561          <action
562                label="Run External PHP Parser"
563                class="net.sourceforge.phpeclipse.actions.PHPExternalParserAction"
564                menubarPath="additions"
565                id="net.sourceforge.phpeclipse.actions.externalParserAction">
566          </action>
567       </objectContribution>
568       <objectContribution
569             objectClass="org.eclipse.core.resources.IFile"
570             nameFilter="*.php"
571             id="net.sourceforge.phpeclipse.actions.popupShowAction">
572          <action
573                label="Open PHP Browser"
574                class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
575                menubarPath="additions"
576                id="net.sourceforge.phpeclipse.actions.showAction">
577          </action>
578       </objectContribution>
579       <objectContribution
580             objectClass="org.eclipse.core.resources.IFile"
581             nameFilter="*.php3"
582             id="net.sourceforge.phpeclipse.actions.popupShowAction">
583          <action
584                label="Open PHP Browser"
585                class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
586                menubarPath="additions"
587                id="net.sourceforge.phpeclipse.actions.showAction">
588          </action>
589       </objectContribution>
590       <objectContribution
591             objectClass="org.eclipse.core.resources.IFile"
592             nameFilter="*.php4"
593             id="net.sourceforge.phpeclipse.actions.popupShowAction">
594          <action
595                label="Open PHP Browser"
596                class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
597                menubarPath="additions"
598                id="net.sourceforge.phpeclipse.actions.showAction">
599          </action>
600       </objectContribution>
601       <objectContribution
602             objectClass="org.eclipse.core.resources.IFile"
603             nameFilter="*.inc"
604             id="net.sourceforge.phpeclipse.actions.popupShowAction">
605          <action
606                label="Open PHP Browser"
607                class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
608                menubarPath="additions"
609                id="net.sourceforge.phpeclipse.actions.showAction">
610          </action>
611       </objectContribution>
612       <objectContribution
613             objectClass="org.eclipse.core.resources.IFile"
614             nameFilter="*.phtml"
615             id="net.sourceforge.phpeclipse.actions.popupShowAction">
616          <action
617                label="Open PHP Browser"
618                class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
619                menubarPath="additions"
620                id="net.sourceforge.phpeclipse.actions.showAction">
621          </action>
622       </objectContribution>
623       <objectContribution
624             objectClass="org.eclipse.core.resources.IFile"
625             nameFilter="*.html"
626             id="net.sourceforge.phpeclipse.actions.popupShowAction">
627          <action
628                label="Open PHP Browser"
629                class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
630                menubarPath="additions"
631                id="net.sourceforge.phpeclipse.actions.showAction">
632          </action>
633       </objectContribution>
634             <objectContribution
635             objectClass="org.eclipse.core.resources.IFile"
636             nameFilter="*.htm"
637             id="net.sourceforge.phpeclipse.actions.popupShowAction">
638          <action
639                label="Open PHP Browser"
640                class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
641                menubarPath="additions"
642                id="net.sourceforge.phpeclipse.actions.showAction">
643          </action>
644       </objectContribution>
645             <objectContribution
646             objectClass="org.eclipse.core.resources.IFile"
647             nameFilter="*.xml"
648             id="net.sourceforge.phpeclipse.actions.popupShowAction">
649          <action
650                label="Open PHP Browser"
651                class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
652                menubarPath="additions"
653                id="net.sourceforge.phpeclipse.actions.showAction">
654          </action>
655       </objectContribution>
656   
657       <viewerContribution
658             targetID="#PHPEditorContext"
659             id="net.sourceforge.phpeclipse.actions.popupOpenDeclaration">
660          <action
661                label="Open PHP Declaration"
662                class="net.sourceforge.phpeclipse.actions.PHPOpenDeclarationEditorActon"
663                menubarPath="additions"
664                id="net.sourceforge.phpeclipse.actions.opendeclaration">
665          </action>
666       </viewerContribution>
667    
668       <viewerContribution
669             targetID="#PHPRulerContext"
670             id="net.sourceforge.phpdt.ui.PHPEditorPopupActions">
671          <action
672                label="%AddTask.label"
673                helpContextId="org.eclipse.ui.AddTask_action_context"
674                class="org.eclipse.ui.texteditor.TaskRulerAction"
675                menubarPath="add"
676                id="org.eclipse.ui.texteditor.TaskRulerAction">
677          </action>
678          <action
679                label="%AddBookmark.label"
680                helpContextId="org.eclipse.ui.bookmark_action_context"
681                class="org.eclipse.ui.texteditor.BookmarkRulerAction"
682                menubarPath="add"
683                id="org.eclipse.ui.texteditor.BookmarkRulerAction">
684          </action>
685       </viewerContribution>
686    </extension>
687    
688    <extension
689          point="org.eclipse.ui.editorActions">
690       <editorContribution
691             id="org.eclipse.ui.texteditor.ruler.actions"
692             targetID="net.sourceforge.phpeclipse.PHPUnitEditor">
693
694                 <action
695                         id="org.eclipse.ui.texteditor.BookmarkRulerAction"
696                         actionID="RulerDoubleClick"
697                         label="%Dummy.label"
698             helpContextId="org.eclipse.ui.bookmark_action_context"
699                         class="org.eclipse.ui.texteditor.BookmarkRulerAction">
700                 </action>
701       </editorContribution>
702    </extension>
703    
704    <extension
705          point="org.eclipse.ui.preferencePages">
706       <page
707             name="PHP"
708             class="net.sourceforge.phpeclipse.PHPEclipseBasePreferencePage"
709             id="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage">
710       </page>
711       <page
712             name="PHP Parser"
713             category="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
714             class="net.sourceforge.phpeclipse.PHPEclipseParserPreferencePage"
715             id="net.sourceforge.phpeclipse.preference.PHPEclipseParserPreferencePage">
716       </page>
717 <!--    <page
718             name="Editor2"
719             category="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
720             class="net.sourceforge.phpeclipse.PHPSyntaxEditorPreferencePage"
721             id="net.sourceforge.phpeclipse.preference.PHPSyntaxEditorPreferencePage">
722       </page>  -->
723       <page
724             name="Outline"
725             category="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
726             class="net.sourceforge.phpeclipse.PHPOutlinePreferencePage"
727             id="net.sourceforge.phpeclipse.preference.PHPOutlinePreferencePage">
728       </page>
729       <page
730             name="Templates"
731             category="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
732             class="net.sourceforge.phpdt.internal.ui.preferences.TemplatePreferencePage"
733             id="net.sourceforge.phpeclipse.preference.TemplatePreferencePage">
734       </page>
735       <page
736             name="Formatter"
737             category="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
738             class="net.sourceforge.phpdt.internal.ui.preferences.CodeFormatterPreferencePage"
739             id="net.sourceforge.phpeclipse.preference.CodeFormatterPreferencePage">
740       </page>
741       <page
742             name="Editor"
743             category="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
744             class="net.sourceforge.phpdt.internal.ui.preferences.PHPEditorPreferencePage"
745             id="net.sourceforge.phpeclipse.preference.PHPEditorPreferencePage">
746       </page>
747  <!--     <page
748             name="Language Settings"
749             category="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
750             class="net.sourceforge.phpeclipse.PHPLanguagePreferencePage"
751             id="net.sourceforge.phpeclipse.preference.PHPLanguagePreferencePage">
752       </page> -->
753    </extension>
754    <extension
755          point="org.eclipse.ui.documentProviders">
756       <provider
757             extensions="%phpFileExtension"
758             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
759             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
760       </provider>
761    </extension>
762    <extension
763          point="org.eclipse.ui.documentProviders">
764       <provider
765             extensions="%php3FileExtension"
766             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
767             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
768       </provider>
769    </extension>
770    <extension
771          point="org.eclipse.ui.documentProviders">
772       <provider
773             extensions="%php4FileExtension"
774             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
775             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
776       </provider>
777    </extension>
778    <extension
779          point="org.eclipse.ui.documentProviders">
780       <provider
781             extensions="%incFileExtension"
782             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
783             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
784       </provider>
785    </extension>
786    <extension
787          point="org.eclipse.ui.documentProviders">
788       <provider
789             extensions="%phtmlFileExtension"
790             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
791             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
792       </provider>
793    </extension>
794    <extension
795          point="org.eclipse.ui.documentProviders">
796       <provider
797             extensions="%htmlFileExtension"
798             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
799             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
800       </provider>
801    </extension>
802    <extension
803          point="org.eclipse.ui.documentProviders">
804       <provider
805             extensions="%htmFileExtension"
806             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
807             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
808       </provider>
809    </extension>
810    <extension
811          point="org.eclipse.ui.documentProviders">
812       <provider
813             extensions="%xmlFileExtension"
814             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
815             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
816       </provider>
817    </extension>
818    <extension
819          point="org.eclipse.ui.documentProviders">
820       <provider
821             extensions="%tplFileExtension"
822             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
823             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
824       </provider>
825    </extension>
826    <extension
827          point="org.eclipse.ui.views">
828       <view
829             name="%phpConsoleView"
830             icon="icons/obj16/php.gif"
831             class="net.sourceforge.phpeclipse.views.PHPConsole"
832             id="net.sourceforge.phpeclipse.views.phpconsoleview">
833       </view>
834    </extension>
835
836 <!-- =========================================================================== -->
837 <!-- PHPDT/UI Editor Key Bindings -->
838 <!-- =========================================================================== -->
839    <extension
840          point="org.eclipse.ui.acceleratorSets">
841       <acceleratorSet
842             scopeId="org.eclipse.ui.textEditorScope"
843             configurationId="org.eclipse.ui.emacsAcceleratorConfiguration">
844 <!-- edit -->
845          <accelerator
846                key="Ctrl+Shift+P"
847                id="net.sourceforge.phpeclipse.ui.edit.text.php.goto.matching.bracket">
848          </accelerator>
849          <accelerator
850                key="Ctrl+1"
851                id="org.eclipse.ui.edit.text.contentAssist.proposals">
852          </accelerator>
853 <!-- source -->
854          <accelerator
855                key="Ctrl+/"
856                id="net.sourceforge.phpeclipse.phpeditor.comment">
857          </accelerator>
858          <accelerator
859                key="Ctrl+\"
860                id="net.sourceforge.phpeclipse.phpeditor.uncomment">
861          </accelerator> 
862          <accelerator
863                key="Ctrl+Shift+F"
864                id="net.sourceforge.phpeclipse.phpeditor.format">
865          </accelerator>
866          <accelerator
867                key="Ctrl+O"
868                id="net.sourceforge.phpeclipse.ui.edit.text.php.show.outline">
869          </accelerator>
870          <accelerator
871                key="Ctrl+F3"
872                id="net.sourceforge.phpeclipse.ui.navigate.php.open.structure">
873          </accelerator>
874       </acceleratorSet>
875       <acceleratorSet
876             scopeId="org.eclipse.ui.textEditorScope"
877             configurationId="org.eclipse.ui.defaultAcceleratorConfiguration">
878 <!-- edit -->
879          <accelerator
880                key="Ctrl+Shift+P"
881                id="net.sourceforge.phpeclipse.ui.edit.text.php.goto.matching.bracket">
882          </accelerator>
883          <accelerator
884                key="Ctrl+Space"
885                id="org.eclipse.ui.edit.text.contentAssist.proposals">
886          </accelerator> 
887 <!-- source -->
888          <accelerator
889                key="Ctrl+/"
890                id="net.sourceforge.phpeclipse.phpeditor.comment">
891          </accelerator>
892          <accelerator
893                key="Ctrl+\"
894                id="net.sourceforge.phpeclipse.phpeditor.uncomment">
895          </accelerator>
896          <accelerator
897                key="Ctrl+Shift+F"
898                id="net.sourceforge.phpeclipse.phpeditor.format">
899          </accelerator>
900          <accelerator
901                key="Ctrl+F3"
902                id="net.sourceforge.phpeclipse.ui.navigate.php.open.structure">
903          </accelerator>
904          <accelerator
905                key="Ctrl+O"
906                id="net.sourceforge.phpeclipse.ui.edit.text.php.show.outline">
907          </accelerator>
908       </acceleratorSet>
909       <acceleratorSet
910             scopeId="org.eclipse.ui.textEditorScope"
911             configurationId="org.eclipse.ui.defaultAcceleratorConfiguration">
912 <!-- edit -->
913          <accelerator
914                platform="carbon"
915                key="Command+Shift+P"
916                id="net.sourceforge.phpeclipse.ui.edit.text.php.goto.matching.bracket">
917          </accelerator>
918          <accelerator
919                platform="carbon"
920                key="Command+1"
921                id="org.eclipse.ui.edit.text.contentAssist.proposals">
922          </accelerator>
923 <!-- source -->
924          <accelerator
925                platform="carbon"
926                key="Command+/"
927                id="net.sourceforge.phpeclipse.phpeditor.comment">
928          </accelerator>
929          <accelerator
930                platform="carbon"
931                key="Command+\"
932                id="net.sourceforge.phpeclipse.phpeditor.uncomment">
933          </accelerator> 
934       </acceleratorSet>
935    </extension>
936
937 <!-- external tools -->
938
939 <!-- extension point definitions -->
940         <extension-point id="configurationDuplicationMaps" name="%ExtPoint.configurationDuplicationMaps"/>
941         <extension-point id="argumentVariables" name="%ExtPoint.argumentVariables"/>
942         <extension-point id="directoryVariables" name="%ExtPoint.directoryVariables"/>
943         <extension-point id="fileVariables" name="%ExtPoint.fileVariables"/>
944         <extension-point id="refreshVariables" name="%ExtPoint.refreshVariables"/>
945         
946 <!-- Extensions -->
947         <extension point="org.eclipse.ui.actionSets">
948                 <actionSet
949                         id="net.sourceforge.phpdt.externaltools.ExternalToolsSet"
950                         label="%ActionSet.externalTools"
951                         visible="true">
952                         <menu id="org.eclipse.ui.run" 
953                                 label="%Menu.run" 
954                                 path="additions"> 
955                                 <separator name="ExternalToolsGroup"/> 
956                         </menu> 
957         <!--            <action
958                                 id="net.sourceforge.phpdt.externaltools.ExternalToolMenuDelegateMenu"
959                                 label="%Action.externalTools"
960                                 menubarPath="org.eclipse.ui.run/ExternalToolsGroup"
961                                 disabledIcon="icons/externaltools/full/dtool16/external_tools.gif"
962                                 icon="icons/externaltools/full/etool16/external_tools.gif"
963                                 hoverIcon="icons/externaltools/full/ctool16/external_tools.gif"
964                                 pulldown="true"
965                                 class="net.sourceforge.phpdt.externaltools.internal.menu.ExternalToolMenuDelegate">
966                         </action> 
967                         <action
968                                 id="net.sourceforge.phpdt.externaltools.ExternalToolMenuDelegateToolbar"
969                                 label="%Action.externalTools"
970                                 toolbarPath="Normal/additions"
971                                 disabledIcon="icons/externaltools/full/dtool16/external_tools.gif"
972                                 icon="icons/externaltools/full/etool16/external_tools.gif"
973                                 hoverIcon="icons/externaltools/full/ctool16/external_tools.gif"
974                                 tooltip="%Action.externalToolsTip"
975                                 pulldown="true"
976                                 class="net.sourceforge.phpdt.externaltools.internal.menu.ExternalToolMenuDelegate">
977                         </action> -->
978                 </actionSet>
979         </extension>
980
981     <!-- Launch Configuration Extensions -->
982     <extension point="org.eclipse.debug.core.launchConfigurationTypes">
983         <launchConfigurationType
984                 id = "net.sourceforge.phpdt.externaltools.ProgramLaunchConfigurationType"
985                 name = "%Program.externalTools"
986                 delegate = "net.sourceforge.phpdt.externaltools.internal.program.launchConfigurations.ProgramLaunchDelegate"
987                 modes = "run"
988                 category = "org.eclipse.ui.externaltools">
989         </launchConfigurationType>
990         <launchConfigurationType
991                 id = "net.sourceforge.phpdt.externaltools.ProgramBuilderLaunchConfigurationType"
992                 name = "%Program.externalTools"
993                 delegate = "net.sourceforge.phpdt.externaltools.internal.program.launchConfigurations.ProgramLaunchDelegate"
994                 modes = "run"
995                 category = "org.eclipse.ui.externaltools.builder">
996         </launchConfigurationType>
997     </extension>
998     
999     <extension point = "net.sourceforge.phpeclipse.configurationDuplicationMaps">
1000         <configurationMap
1001                 sourceType="net.sourceforge.phpdt.externaltools.ProgramLaunchConfigurationType"
1002                 builderType="net.sourceforge.phpdt.externaltools.ProgramBuilderLaunchConfigurationType">
1003         </configurationMap>
1004     </extension>
1005     
1006     <extension point = "org.eclipse.debug.ui.launchConfigurationTabGroups">
1007                 <launchConfigurationTabGroup
1008                         id="net.sourceforge.phpdt.externaltools.launchConfigurationTabGroup.program"
1009                         type ="net.sourceforge.phpdt.externaltools.ProgramLaunchConfigurationType"
1010                         class="net.sourceforge.phpdt.externaltools.internal.program.launchConfigurations.ProgramTabGroup">
1011                 </launchConfigurationTabGroup>
1012                 <launchConfigurationTabGroup
1013                         id="net.sourceforge.phpdt.externaltools.launchConfigurationTabGroup.program.builder"
1014                         type ="net.sourceforge.phpdt.externaltools.ProgramBuilderLaunchConfigurationType"
1015                         class="net.sourceforge.phpdt.externaltools.internal.program.launchConfigurations.ProgramBuilderTabGroup">
1016                 </launchConfigurationTabGroup>
1017         </extension>
1018         
1019         <extension point="org.eclipse.debug.ui.launchConfigurationTypeImages">
1020                 <launchConfigurationTypeImage
1021                         id="net.sourceforge.phpdt.externaltools.launchConfigurationTypeImage.program"
1022                         configTypeID="net.sourceforge.phpdt.externaltools.ProgramLaunchConfigurationType"
1023                         icon="icons/externaltools/full/obj16/external_tools.gif">
1024                 </launchConfigurationTypeImage> 
1025                 <launchConfigurationTypeImage
1026                         id="net.sourceforge.phpdt.externaltools.launchConfigurationTypeImage.program.builder"
1027                         configTypeID="net.sourceforge.phpdt.externaltools.ProgramBuilderLaunchConfigurationType"
1028                         icon="icons/externaltools/full/obj16/external_tools.gif">
1029                 </launchConfigurationTypeImage> 
1030         </extension>
1031
1032         <!-- Variable Extensions -->
1033         <extension point="net.sourceforge.phpeclipse.fileVariables">
1034                 <variable
1035                         tag="workspace_loc"
1036                         description="Expands to the workspace root's absolute file system path."
1037                         expanderClass="net.sourceforge.phpdt.externaltools.variable.WorkspaceExpander">
1038                 </variable>
1039                 <variable
1040                         tag="resource_loc"
1041                         description="Expands to the resource's absolute file system path."
1042                         componentClass="net.sourceforge.phpdt.externaltools.variable.SpecificFileResourceComponent"
1043                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ResourceExpander">
1044                 </variable>
1045         </extension>
1046         
1047         <extension point="net.sourceforge.phpeclipse.argumentVariables">
1048                 <variable
1049                         tag="workspace_loc"
1050                         description="Expands to the workspace root's absolute file system path."
1051                         expanderClass="net.sourceforge.phpdt.externaltools.variable.WorkspaceExpander">
1052                 </variable>
1053                 <variable
1054                         tag="file_loc"
1055                         description="Expands to the full file name"
1056                         expanderClass="net.sourceforge.phpdt.externaltools.variable.FileExpander">
1057                 </variable>
1058                 <variable
1059                         tag="file_url"
1060                         description="Expands to an URL with the localhost preference settings"
1061                         expanderClass="net.sourceforge.phpdt.externaltools.variable.UrlExpander">
1062                 </variable>
1063                 <variable
1064                         tag="localhost_url"
1065                         description="Expands to the localhost preference settings."
1066                         expanderClass="net.sourceforge.phpdt.externaltools.variable.LocalhostExpander">
1067                 </variable>
1068                 <variable
1069                         tag="project_loc"
1070                         description="Expands to the selected resource's project absolute file system path."
1071                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ResourceProjectExpander">
1072                 </variable>
1073                 <variable
1074                         tag="project_path"
1075                         description="Expands to the full path, relative to the workspace root, of the selected project"
1076                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ProjectExpander">
1077                 </variable>
1078                 <variable
1079                         tag="project_name"
1080                         description="Expands to the name of the selected project"
1081                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ProjectNameExpander">
1082                 </variable>
1083                 <variable
1084                         tag="resource_loc"
1085                         description="Expands to the resource's absolute file system path."
1086                         componentClass="net.sourceforge.phpdt.externaltools.variable.SpecificFileResourceComponent"
1087                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ResourceExpander">
1088                 </variable>
1089                 <variable
1090                         tag="container_loc"
1091                         description="Expands to the selected resource's containing folder absolute file system path."
1092                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ResourceContainerExpander">
1093                 </variable>
1094                 <variable
1095                         tag="build_type"
1096                         description="Expands to the type of build"
1097                         expanderClass="net.sourceforge.phpdt.externaltools.variable.BuildTypeExpander">
1098                 </variable>
1099         </extension>
1100
1101         <extension point="net.sourceforge.phpeclipse.directoryVariables">
1102                 <variable
1103                         tag="workspace_loc"
1104                         description="Expands to the workspace root's absolute file system path."
1105                         expanderClass="net.sourceforge.phpdt.externaltools.variable.WorkspaceExpander">
1106                 </variable>
1107                 <variable
1108                         tag="project_loc"
1109                         description="Expands to the selected resource's project absolute file system path."
1110                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ResourceProjectExpander">
1111                 </variable>
1112                 <variable
1113                         tag="container_loc"
1114                         description="Expands to the selected resource's containing folder absolute file system path."
1115                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ResourceContainerExpander">
1116                 </variable>
1117                 <variable
1118                         tag="resource_loc"
1119                         description="Expands to a resource's absolute file system path."
1120                         componentClass="net.sourceforge.phpdt.externaltools.variable.SpecificFolderResourceComponent"
1121                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ResourceExpander">
1122                 </variable>
1123         </extension>
1124
1125         <extension point="net.sourceforge.phpeclipse.refreshVariables">
1126                 <variable
1127                         tag="workspace"
1128                         description="Expands to the workspace root."
1129                         expanderClass="net.sourceforge.phpdt.externaltools.variable.WorkspaceExpander">
1130                 </variable>
1131                 <variable
1132                         tag="project"
1133                         description="Expands to the project of the selected resource."
1134                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ResourceProjectExpander">
1135                 </variable>
1136                 <variable
1137                         tag="container"
1138                         description="Expands to the folder containing the selected resource."
1139                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ResourceContainerExpander">
1140                 </variable>
1141                 <variable
1142                         tag="resource"
1143                         description="Expands to a resource."
1144                         componentClass="net.sourceforge.phpdt.externaltools.variable.ResourceComponent"
1145                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ResourceExpander">
1146                 </variable>
1147                 <variable
1148                         tag="working_set"
1149                         description="Expands to the group of resources in a working set."
1150                         expanderClass="net.sourceforge.phpdt.externaltools.variable.WorkingSetExpander">
1151                 </variable>
1152         </extension>
1153 </plugin>