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