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