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