63b226c7520663172f467382c426abd560cc43ad
[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.phpeclipse.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.phpeclipse.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.phpeclipse.phpeditor.comment">
234       </actionDefinition>
235       <actionDefinition
236             id="net.sourceforge.phpeclipse.phpeditor.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.phpeclipse.phpeditor.comment">
247          </accelerator>
248          <accelerator
249                key="Ctrl+\\"
250                id="net.sourceforge.phpeclipse.phpeditor.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    </extension>
434    <extension
435          point="org.eclipse.ui.preferencePages">
436       <page
437             name="PHP"
438             class="net.sourceforge.phpeclipse.PHPEclipsePreferencePage"
439             id="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage">
440       </page>
441       <page
442             name="Editor"
443             category="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
444             class="net.sourceforge.phpeclipse.PHPSyntaxPreferencePage"
445             id="net.sourceforge.phpeclipse.preference.PHPSyntaxPreferencePage">
446       </page>
447       <page name="Templates"
448                 id = "net.sourceforge.phpdt.internal.ui.preferences.TemplatePreferencePage"
449                 class="net.sourceforge.phpdt.internal.ui.preferences.TemplatePreferencePage"
450                 category= "net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage">
451           </page>
452    </extension>
453    <extension
454          point="org.eclipse.ui.documentProviders">
455       <provider
456             extensions="%phpFileExtension"
457             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
458             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
459       </provider>
460    </extension>
461    <extension
462          point="org.eclipse.ui.documentProviders">
463       <provider
464             extensions="%php3FileExtension"
465             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
466             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
467       </provider>
468    </extension>
469    <extension
470          point="org.eclipse.ui.documentProviders">
471       <provider
472             extensions="%php4FileExtension"
473             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
474             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
475       </provider>
476    </extension>
477    <extension
478          point="org.eclipse.ui.documentProviders">
479       <provider
480             extensions="%incFileExtension"
481             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
482             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
483       </provider>
484    </extension>
485    <extension
486          point="org.eclipse.ui.documentProviders">
487       <provider
488             extensions="%phtmlFileExtension"
489             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
490             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
491       </provider>
492    </extension>
493    <extension
494          point="org.eclipse.ui.views">
495       <view
496             name="%phpConsoleView"
497             icon="icons/obj16/php.gif"
498             class="net.sourceforge.phpeclipse.views.PHPConsole"
499             id="net.sourceforge.phpeclipse.views.phpconsoleview">
500       </view>
501    </extension>
502
503 </plugin>