a54447b4d1aa04d12db228a62a7216f495f538f2
[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.3"
6    provider-name="%providerName"
7    class="net.sourceforge.phpeclipse.PHPeclipsePlugin">
8
9    <runtime>
10       <library name="phpeclipse.jar"/>
11    </runtime>
12    <requires>
13       <import plugin="org.eclipse.core.resources"/>
14       <import plugin="org.eclipse.ui"/>
15       <import plugin="org.eclipse.help"/>
16       <import plugin="org.eclipse.swt"/>
17       <import plugin="org.eclipse.debug.ui"/>
18       <import plugin="org.apache.xerces"/>
19    </requires>
20
21
22    <extension
23          id="phpnature"
24          name="%naturePHP.name"
25          point="org.eclipse.core.resources.natures">
26       <runtime>
27          <run
28                class="net.sourceforge.phpeclipse.PHPProject">
29          </run>
30       </runtime>
31    </extension>
32    <extension
33          point="org.eclipse.team.core.fileTypes">
34       <fileTypes
35             type="text"
36             extension="php">
37       </fileTypes>
38       <fileTypes
39             type="text"
40             extension="php3">
41       </fileTypes>
42       <fileTypes
43             type="text"
44             extension="php4">
45       </fileTypes>
46       <fileTypes
47             type="text"
48             extension="inc">
49       </fileTypes>
50       <fileTypes
51             type="text"
52             extension="html">
53       </fileTypes>
54       <fileTypes
55             type="text"
56             extension="htm">
57       </fileTypes>
58    </extension>
59    <extension
60          point="org.eclipse.ui.perspectives">
61       <perspective
62             name="%perspectivePHP.name"
63             icon="icons/obj16/php.gif"
64             class="net.sourceforge.phpeclipse.PHPPerspectiveFactory"
65             id="net.sourceforge.phpeclipse.PHPPerspective">
66       </perspective>
67    </extension>
68    <extension
69          point="org.eclipse.ui.newWizards">
70       <category
71             name="%newWizardCategory.name"
72             id="net.sourceforge.phpeclipse.wizards.NewWizardCategoryPHP">
73       </category>
74       <wizard
75             name="%newWizardPHPProject.name"
76             icon="icons/obj16/php.gif"
77             category="net.sourceforge.phpeclipse.wizards.NewWizardCategoryPHP"
78             class="net.sourceforge.phpeclipse.wizards.NewProjectCreationWizard"
79             project="true"
80             id="net.sourceforge.phpeclipse.wizards.NewWizardProjectCreation">
81          <description>
82             Create a new PHP project.
83          </description>
84       </wizard>
85    </extension>
86  <!--   <extension
87          point="org.eclipse.ui.newWizards">
88       <category
89             name="%newWizardCategory.name"
90             id="net.sourceforge.phpeclipse.wizardCategory">
91       </category>
92       <wizard
93             name="%newWizardPHPFile.name"
94             icon="icons/obj16/phpedit.gif"
95             category="net.sourceforge.phpeclipse.wizardCategory"
96             class="net.sourceforge.phpeclipse.wizards.PHPFileWizard"
97             id="net.sourceforge.phpeclipse.wizards.PHPFileWizard">
98          <description>
99             Create a basic PHP file.
100          </description>
101       </wizard>
102    </extension> -->
103    <extension
104          point="org.eclipse.ui.projectNatureImages">
105       <image
106             icon="icons/obj16/php.gif"
107             natureId="net.sourceforge.phpeclipse.phpnature"
108             id="net.sourceforge.phpeclipse..ProjectNatureImagePHP">
109       </image>
110    </extension>
111    <extension
112          point="org.eclipse.ui.propertyPages">
113       <page
114             objectClass="org.eclipse.core.resources.IProject"
115             name="%propertyPagePHPProject.name"
116             class="net.sourceforge.phpeclipse.preferences.PHPProjectPropertyPage"
117             id="net.sourceforge.phpeclipse.preferences.PropertyPagePHPProject">
118          <filter
119                name="nature"
120                value="net.sourceforge.phpeclipse.phpnature">
121          </filter>
122       </page>
123       <page
124             objectClass="net.sourceforge.phpeclipse.PHPProject"
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    </extension>
134    <extension
135          point="org.eclipse.ui.views">
136       <view
137             name="%viewPHPResources.name"
138             icon="icons/obj16/php.gif"
139             class="net.sourceforge.phpeclipse.resourcesview.PHPResourcesView"
140             id="net.sourceforge.phpeclipse.resourcesview.ViewPHPResources">
141       </view>
142    </extension>
143    <extension
144          point="org.eclipse.ui.actionDefinitions">
145       <actionDefinition
146             id="net.sourceforge.phpeclipse.phpeditor.comment">
147       </actionDefinition>
148       <actionDefinition
149             id="net.sourceforge.phpeclipse.phpeditor.uncomment">
150       </actionDefinition>
151    </extension>
152    <extension
153          point="org.eclipse.ui.acceleratorSets">
154       <acceleratorSet
155             scopeId="org.eclipse.ui.textEditorScope"
156             configurationId="org.eclipse.ui.defaultAcceleratorConfiguration">
157          <accelerator
158                key="Ctrl+/"
159                id="net.sourceforge.phpeclipse.phpeditor.comment">
160          </accelerator>
161          <accelerator
162                key="Ctrl+\"
163                id="net.sourceforge.phpeclipse.phpeditor.uncomment">
164          </accelerator>
165       </acceleratorSet>
166    </extension>
167    <extension
168          point="org.eclipse.ui.actionSets">
169       <actionSet
170             label="PHP/Apache"
171             description="Starting MySQL and Apache."
172             visible="true"
173             id="net.sourceforge.phpeclipse.PHPActionSet">
174          <menu
175                label="PHP/Apache"
176                id="net.sourceforge.phpeclipse.PHPMenu">
177             <separator
178                   name="phpeclipse">
179             </separator>
180          </menu>
181          <action
182                label="Restart Apache"
183                icon="icons/obj16/apache.gif"
184                tooltip="Restart Apache"
185                class="net.sourceforge.phpeclipse.actions.PHPRestartApacheAction"
186                menubarPath="net.sourceforge.phpeclipse.PHPMenu/phpeclipse"
187                toolbarPath="Normal"
188                start="true"
189                id="net.sourceforge.phpeclipse.actions.PHPRestartApacheAction">
190          </action>
191          <action
192                label="Stop Apache"
193                icon="icons/obj16/apache.gif"
194                tooltip="Stop Apache"
195                class="net.sourceforge.phpeclipse.actions.PHPStopApacheAction"
196                menubarPath="net.sourceforge.phpeclipse.PHPMenu/phpeclipse"
197                toolbarPath="Normal"
198                start="true"
199                id="net.sourceforge.phpeclipse.actions.PHPStopApacheAction">
200          </action>
201          <action
202                label="Start Apache"
203                icon="icons/obj16/apache.gif"
204                tooltip="Start Apache"
205                class="net.sourceforge.phpeclipse.actions.PHPStartApacheAction"
206                menubarPath="net.sourceforge.phpeclipse.PHPMenu/phpeclipse"
207                toolbarPath="Normal"
208                start="true"
209                id="net.sourceforge.phpeclipse.actions.PHPStartApacheAction">
210          </action>
211          <action
212                label="Start MySQL"
213                icon="icons/obj16/apache.gif"
214                tooltip="Start MySQL"
215                class="net.sourceforge.phpeclipse.actions.PHPStartMySQLAction"
216                menubarPath="net.sourceforge.phpeclipse.PHPMenu/phpeclipse"
217                toolbarPath="Normal"
218                start="true"
219                id="net.sourceforge.phpeclipse.actions.PHPStartMySQLAction">
220          </action>
221       </actionSet>
222       <actionSet
223             label="%phpActionSet.label"
224             visible="false"
225             id="net.sourceforge.phpeclipse.phpeditor.actions.phpActionSet">
226          <menu
227                label="%php.menu.label"
228                path="edit"
229                id="net.sourceforge.phpeclipse.phpeditor.menu">
230             <separator
231                   name="editGroup">
232             </separator>
233          </menu>
234          <action
235                definitionId="net.sourceforge.phpeclipse.phpeditor.uncomment"
236                accelerator="Ctrl+Shift+\\"
237                label="%phpUncommentAction.label"
238                retarget="true"
239                menubarPath="net.sourceforge.phpeclipse.phpeditor.menu/editGroup"
240                id="net.sourceforge.phpeclipse.phpeditor.actions.Uncomment">
241          </action>
242          <action
243                definitionId="net.sourceforge.phpeclipse.phpeditor.comment"
244                accelerator="Ctrl+Shift+/"
245                label="%phpCommentAction.label"
246                retarget="true"
247                menubarPath="net.sourceforge.phpeclipse.phpeditor.menu/editGroup"
248                id="net.sourceforge.phpeclipse.phpeditor.actions.Comment">
249          </action>
250       </actionSet>
251    </extension>
252    <extension
253          point="org.eclipse.ui.editors">
254       <editor
255             name="%phpEditorName"
256             icon="icons/obj16/phpedit.gif"
257             extensions="php"
258             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
259             class="net.sourceforge.phpeclipse.phpeditor.PHPEditor"
260             id="net.sourceforge.phpeclipse.PHPEditor">
261       </editor>
262       <editor
263             name="%phpEditorName"
264             icon="icons/obj16/phpedit.gif"
265             extensions="php3"
266             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
267             class="net.sourceforge.phpeclipse.phpeditor.PHPEditor"
268             id="net.sourceforge.phpeclipse.PHPEditor">
269       </editor>
270       <editor
271             name="%phpEditorName"
272             icon="icons/obj16/phpedit.gif"
273             extensions="php4"
274             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
275             class="net.sourceforge.phpeclipse.phpeditor.PHPEditor"
276             id="net.sourceforge.phpeclipse.PHPEditor">
277       </editor>
278       <editor
279             name="%phpEditorName"
280             icon="icons/obj16/phpedit.gif"
281             extensions="inc"
282             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
283             class="net.sourceforge.phpeclipse.phpeditor.PHPEditor"
284             id="net.sourceforge.phpeclipse.PHPEditor">
285       </editor>
286       <editor
287             name="%phpEditorName"
288             icon="icons/obj16/phpedit.gif"
289             extensions="htm"
290             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
291             class="net.sourceforge.phpeclipse.phpeditor.PHPEditor"
292             id="net.sourceforge.phpeclipse.PHPEditor">
293       </editor>
294       <editor
295             name="%phpEditorName"
296             icon="icons/obj16/phpedit.gif"
297             extensions="html"
298             contributorClass="net.sourceforge.phpeclipse.phpeditor.PHPActionContributor"
299             class="net.sourceforge.phpeclipse.phpeditor.PHPEditor"
300             id="net.sourceforge.phpeclipse.PHPEditor">
301       </editor>
302    </extension>
303    <extension
304          point="org.eclipse.ui.popupMenus">
305       <objectContribution
306             objectClass="org.eclipse.core.resources.IFile"
307             nameFilter="*.php"
308             id="net.sourceforge.phpeclipse.actions.externalParserAction">
309          <action
310                label="Run External PHP Parser"
311                class="net.sourceforge.phpeclipse.actions.PHPExternalParserAction"
312                menubarPath="additions"
313                id="net.sourceforge.phpeclipse.actions.externalParserAction">
314          </action>
315       </objectContribution>
316       <objectContribution
317             objectClass="org.eclipse.core.resources.IFile"
318             nameFilter="*.php3"
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="*.php4"
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="*.php"
341             id="net.sourceforge.phpeclipse.actions.popupShowAction">
342          <action
343                label="Open PHP Browser"
344                class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
345                menubarPath="additions"
346                id="net.sourceforge.phpeclipse.actions.showAction">
347          </action>
348       </objectContribution>
349       <objectContribution
350             objectClass="org.eclipse.core.resources.IFile"
351             nameFilter="*.php3"
352             id="net.sourceforge.phpeclipse.actions.popupShowAction">
353          <action
354                label="Open PHP Browser"
355                class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
356                menubarPath="additions"
357                id="net.sourceforge.phpeclipse.actions.showAction">
358          </action>
359       </objectContribution>
360       <objectContribution
361             objectClass="org.eclipse.core.resources.IFile"
362             nameFilter="*.php4"
363             id="net.sourceforge.phpeclipse.actions.popupShowAction">
364          <action
365                label="Open PHP Browser"
366                class="net.sourceforge.phpeclipse.actions.PHPEclipseShowAction"
367                menubarPath="additions"
368                id="net.sourceforge.phpeclipse.actions.showAction">
369          </action>
370       </objectContribution>
371       <viewerContribution
372             targetID="#PHPEditorContext"
373             id="net.sourceforge.phpeclipse.actions.popup.editor">
374          <action
375                label="PHP Help"
376                class="net.sourceforge.phpeclipse.actions.PHPEclipseShowContextHelp"
377                menubarPath="additions"
378                id="net.sourceforge.phpeclipse.actions.editor.contexthelp">
379          </action>
380       </viewerContribution>
381    </extension>
382    <extension
383          point="org.eclipse.ui.preferencePages">
384       <page
385             name="PHP"
386             class="net.sourceforge.phpeclipse.PHPEclipsePreferencePage"
387             id="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage">
388       </page>
389       <page
390             name="PHP Editor"
391             category="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
392             class="net.sourceforge.phpeclipse.PHPSyntaxPreferencePage"
393             id="net.sourceforge.phpeclipse.preference.PHPSyntaxPreferencePage">
394       </page>
395    </extension>
396    <extension
397          point="org.eclipse.ui.documentProviders">
398       <provider
399             extensions="%phpFileExtension"
400             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
401             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
402       </provider>
403    </extension>
404    <extension
405          point="org.eclipse.ui.documentProviders">
406       <provider
407             extensions="%php3FileExtension"
408             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
409             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
410       </provider>
411    </extension>
412    <extension
413          point="org.eclipse.ui.documentProviders">
414       <provider
415             extensions="%php4FileExtension"
416             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
417             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
418       </provider>
419    </extension>
420    <extension
421          point="org.eclipse.ui.views">
422       <view
423             name="%phpConsoleView"
424             icon="icons/obj16/java.gif"
425             class="net.sourceforge.phpeclipse.views.PHPConsole"
426             id="net.sourceforge.phpeclipse.views.phpconsoleview">
427       </view>
428    </extension>
429    <extension
430          point="org.eclipse.help.toc">
431       <toc
432             file="phphelp.xml"
433             primary="true">
434       </toc>
435    </extension>
436
437 </plugin>