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