*** empty log message ***
[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="*.php"
319             id="net.sourceforge.phpeclipse.actions.externalParserAction">
320          <action
321                label="Run External PHP Parser"
322                class="net.sourceforge.phpeclipse.actions.PHPExternalParserAction"
323                menubarPath="additions"
324                id="net.sourceforge.phpeclipse.actions.externalParserAction">
325          </action>
326       </objectContribution>
327       <objectContribution
328             objectClass="org.eclipse.core.resources.IFile"
329             nameFilter="*.php3"
330             id="net.sourceforge.phpeclipse.actions.externalParserAction">
331          <action
332                label="Run External PHP Parser"
333                class="net.sourceforge.phpeclipse.actions.PHPExternalParserAction"
334                menubarPath="additions"
335                id="net.sourceforge.phpeclipse.actions.externalParserAction">
336          </action>
337       </objectContribution>
338       <objectContribution
339             objectClass="org.eclipse.core.resources.IFile"
340             nameFilter="*.php4"
341             id="net.sourceforge.phpeclipse.actions.externalParserAction">
342          <action
343                label="Run External PHP Parser"
344                class="net.sourceforge.phpeclipse.actions.PHPExternalParserAction"
345                menubarPath="additions"
346                id="net.sourceforge.phpeclipse.actions.externalParserAction">
347          </action>
348       </objectContribution>
349       <objectContribution
350             objectClass="org.eclipse.core.resources.IFile"
351             nameFilter="*.inc"
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="*.phtml"
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="*.php"
374             id="net.sourceforge.phpeclipse.actions.popupShowAction">
375          <action
376                label="Open PHP Browser"
377                class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
378                menubarPath="additions"
379                id="net.sourceforge.phpeclipse.actions.showAction">
380          </action>
381       </objectContribution>
382       <objectContribution
383             objectClass="org.eclipse.core.resources.IFile"
384             nameFilter="*.php3"
385             id="net.sourceforge.phpeclipse.actions.popupShowAction">
386          <action
387                label="Open PHP Browser"
388                class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
389                menubarPath="additions"
390                id="net.sourceforge.phpeclipse.actions.showAction">
391          </action>
392       </objectContribution>
393       <objectContribution
394             objectClass="org.eclipse.core.resources.IFile"
395             nameFilter="*.php4"
396             id="net.sourceforge.phpeclipse.actions.popupShowAction">
397          <action
398                label="Open PHP Browser"
399                class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
400                menubarPath="additions"
401                id="net.sourceforge.phpeclipse.actions.showAction">
402          </action>
403       </objectContribution>
404       <objectContribution
405             objectClass="org.eclipse.core.resources.IFile"
406             nameFilter="*.inc"
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="*.phtml"
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        
427           <viewerContribution 
428                 id="net.sourceforge.phpdt.ui.PHPEditorPopupActions" 
429                 targetID="#PHPRulerContext">
430                 <action
431                         id="org.eclipse.ui.texteditor.TaskRulerAction"
432                         menubarPath="add"
433                         label="%AddTask.label"
434                         tooltip="%AddTask.tooltip"
435             helpContextId="org.eclipse.ui.AddTask_action_context"
436                         class="org.eclipse.ui.texteditor.TaskRulerAction">
437                 </action>
438                 <action
439                         id="org.eclipse.ui.texteditor.BookmarkRulerAction"
440                         menubarPath="add"
441                         label="%AddBookmark.label"
442                         tooltip="%AddBookmark.tooltip"
443             helpContextId="org.eclipse.ui.bookmark_action_context"
444                         class="org.eclipse.ui.texteditor.BookmarkRulerAction">
445                 </action>
446           </viewerContribution>
447    </extension>
448    <extension point="org.eclipse.ui.editorActions">
449         <editorContribution
450                 id="org.eclipse.ui.texteditor.ruler.actions"
451                 targetID="net.sourceforge.phpeclipse.PHPEditor">
452
453                 <action
454                         id="org.eclipse.ui.texteditor.BookmarkRulerAction"
455                         actionID="RulerDoubleClick"
456                         label="%Dummy.label"
457             helpContextId="org.eclipse.ui.bookmark_action_context"
458                         class="org.eclipse.ui.texteditor.BookmarkRulerAction">
459                 </action>
460         </editorContribution>
461    </extension>
462    <extension
463          point="org.eclipse.ui.preferencePages">
464       <page
465             name="PHP"
466             class="net.sourceforge.phpeclipse.PHPEclipseBasePreferencePage"
467             id="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage">
468       </page>
469       <page
470             name="Editor"
471             category="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
472             class="net.sourceforge.phpeclipse.PHPSyntaxEditorPreferencePage"
473             id="net.sourceforge.phpeclipse.preference.PHPSyntaxEditorPreferencePage">
474       </page>
475       <page
476             name="Outline"
477             category="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
478             class="net.sourceforge.phpeclipse.PHPOutlinePreferencePage"
479             id="net.sourceforge.phpeclipse.preference.PHPOutlinePreferencePage">
480       </page>
481       <page 
482             name="Templates"
483             category= "net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
484                         class="net.sourceforge.phpdt.internal.ui.preferences.TemplatePreferencePage"
485                         id="net.sourceforge.phpeclipse.preference.TemplatePreferencePage">
486           </page>
487       <page
488             name="Language Settings"
489             category="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
490             class="net.sourceforge.phpeclipse.PHPLanguagePreferencePage"
491             id="net.sourceforge.phpeclipse.preference.PHPLanguagePreferencePage">
492       </page>     
493    </extension>
494    <extension
495          point="org.eclipse.ui.documentProviders">
496       <provider
497             extensions="%phpFileExtension"
498             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
499             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
500       </provider>
501    </extension>
502    <extension
503          point="org.eclipse.ui.documentProviders">
504       <provider
505             extensions="%php3FileExtension"
506             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
507             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
508       </provider>
509    </extension>
510    <extension
511          point="org.eclipse.ui.documentProviders">
512       <provider
513             extensions="%php4FileExtension"
514             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
515             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
516       </provider>
517    </extension>
518    <extension
519          point="org.eclipse.ui.documentProviders">
520       <provider
521             extensions="%incFileExtension"
522             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
523             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
524       </provider>
525    </extension>
526    <extension
527          point="org.eclipse.ui.documentProviders">
528       <provider
529             extensions="%phtmlFileExtension"
530             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
531             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
532       </provider>
533    </extension>
534    <extension
535          point="org.eclipse.ui.documentProviders">
536       <provider
537             extensions="%htmlFileExtension"
538             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
539             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
540       </provider>
541    </extension>
542    <extension
543          point="org.eclipse.ui.documentProviders">
544       <provider
545             extensions="%htmFileExtension"
546             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
547             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
548       </provider>
549    </extension>
550    <extension
551          point="org.eclipse.ui.documentProviders">
552       <provider
553             extensions="%xmlFileExtension"
554             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
555             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
556       </provider>
557    </extension>
558    <extension
559          point="org.eclipse.ui.views">
560       <view
561             name="%phpConsoleView"
562             icon="icons/obj16/php.gif"
563             class="net.sourceforge.phpeclipse.views.PHPConsole"
564             id="net.sourceforge.phpeclipse.views.phpconsoleview">
565       </view>
566    </extension>
567
568 </plugin>