Improved completion processor
[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    </extension>
372    <extension
373          point="org.eclipse.ui.preferencePages">
374       <page
375             name="PHP"
376             class="net.sourceforge.phpeclipse.PHPEclipsePreferencePage"
377             id="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage">
378       </page>
379       <page
380             name="Editor"
381             category="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
382             class="net.sourceforge.phpeclipse.PHPSyntaxPreferencePage"
383             id="net.sourceforge.phpeclipse.preference.PHPSyntaxPreferencePage">
384       </page>
385    </extension>
386    <extension
387          point="org.eclipse.ui.documentProviders">
388       <provider
389             extensions="%phpFileExtension"
390             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
391             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
392       </provider>
393    </extension>
394    <extension
395          point="org.eclipse.ui.documentProviders">
396       <provider
397             extensions="%php3FileExtension"
398             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
399             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
400       </provider>
401    </extension>
402    <extension
403          point="org.eclipse.ui.documentProviders">
404       <provider
405             extensions="%php4FileExtension"
406             class="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider"
407             id="net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider">
408       </provider>
409    </extension>
410    <extension
411          point="org.eclipse.ui.views">
412       <view
413             name="%phpConsoleView"
414             icon="icons/obj16/java.gif"
415             class="net.sourceforge.phpeclipse.views.PHPConsole"
416             id="net.sourceforge.phpeclipse.views.phpconsoleview">
417       </view>
418    </extension>
419    <extension
420          point="org.eclipse.help.toc">
421       <toc
422             file="phphelp.xml"
423             primary="true">
424       </toc>
425    </extension>
426
427 </plugin>