Make PHPeclipse compile correctly under Eclipse Version: 3.2.0 Build id: I20060519...
[phpeclipse.git] / net.sourceforge.phpeclipse.externaltools / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.0"?>
3 <plugin
4    id="net.sourceforge.phpeclipse.externaltools"
5    name="PHP ExternalTools Plug-in"
6    version="1.1.8"
7    provider-name="phpeclipse.de"
8    class="net.sourceforge.phpeclipse.externaltools.ExternalToolsPlugin">
9
10    <runtime>
11           <library name="externaltools.jar">
12                  <export name="*"/>
13           </library>
14    </runtime>
15
16    <requires>
17           <import plugin="org.eclipse.ui"/>
18           <import plugin="org.eclipse.ui.console"/>
19           <import plugin="org.eclipse.ui.ide"/>
20           <import plugin="org.eclipse.ui.editors"/>
21           <import plugin="org.eclipse.core.resources"/>
22           <import plugin="org.eclipse.core.runtime"/>
23           <import plugin="org.eclipse.debug.core"/>
24           <import plugin="org.eclipse.debug.ui"/>
25           <import plugin="org.eclipse.ui.externaltools"/>
26           <import plugin="net.sourceforge.phpeclipse.ui"/>
27    </requires>
28
29
30 <!-- external tools -->
31
32 <!-- extension point definitions -->
33         <extension-point id="configurationDuplicationMaps" name="%ExtPoint.configurationDuplicationMaps"/>
34         <extension-point id="argumentVariables" name="%ExtPoint.argumentVariables"/>
35         <extension-point id="directoryVariables" name="%ExtPoint.directoryVariables"/>
36         <extension-point id="fileVariables" name="%ExtPoint.fileVariables"/>
37         <extension-point id="refreshVariables" name="%ExtPoint.refreshVariables"/>
38
39 <!-- Extensions -->
40 <!--
41         <extension point="org.eclipse.ui.actionSets">
42                 <actionSet
43                         id="net.sourceforge.phpdt.externaltools.ExternalToolsSet"
44                         label="%ActionSet.externalTools"
45                         visible="true">
46                         <menu id="org.eclipse.ui.run"
47                                 label="%Menu.run"
48                                 path="additions">
49                                 <separator name="ExternalToolsGroup"/>
50                         </menu>
51                         <action
52                                 id="net.sourceforge.phpdt.externaltools.ExternalToolMenuDelegateMenu"
53                                 label="%Action.externalTools"
54                                 menubarPath="org.eclipse.ui.run/ExternalToolsGroup"
55                                 disabledIcon="icons/full/dtool16/external_tools.gif"
56                                 icon="icons/full/etool16/external_tools.gif"
57                                 hoverIcon="icons/full/ctool16/external_tools.gif"
58                                 pulldown="true"
59                                 class="net.sourceforge.phpdt.externaltools.internal.menu.ExternalToolMenuDelegate">
60                         </action>
61                         <action
62                                 id="net.sourceforge.phpdt.externaltools.ExternalToolMenuDelegateToolbar"
63                                 label="%Action.externalTools"
64                                 toolbarPath="Normal/additions"
65                                 disabledIcon="icons/full/dtool16/external_tools.gif"
66                                 icon="icons/full/etool16/external_tools.gif"
67                                 hoverIcon="icons/full/ctool16/external_tools.gif"
68                                 tooltip="%Action.externalToolsTip"
69                                 pulldown="true"
70                                 class="net.sourceforge.phpdt.externaltools.internal.menu.ExternalToolMenuDelegate">
71                         </action>
72                 </actionSet>
73         </extension>
74 -->
75
76         <!-- Launch Configuration Extensions -->
77         <extension point="org.eclipse.debug.core.launchConfigurationTypes">
78                 <launchConfigurationType
79                         id = "net.sourceforge.phpeclipse.externaltools.ProgramLaunchConfigurationType"
80                         name = "%Program.externalTools"
81                         delegate = "net.sourceforge.phpdt.externaltools.internal.program.launchConfigurations.ProgramLaunchDelegate"
82                         modes = "run"
83                         category = "org.eclipse.ui.externaltools">
84                 </launchConfigurationType>
85                 <launchConfigurationType
86                         id = "net.sourceforge.phpeclipse.externaltools.ProgramBuilderLaunchConfigurationType"
87                         name = "%Program.externalTools"
88                         delegate = "net.sourceforge.phpdt.externaltools.internal.program.launchConfigurations.ProgramLaunchDelegate"
89                         modes = "run"
90                         category = "org.eclipse.ui.externaltools.builder">
91                 </launchConfigurationType>
92         </extension>
93
94         <extension point = "net.sourceforge.phpeclipse.externaltools.configurationDuplicationMaps">
95                 <configurationMap
96                         sourceType="net.sourceforge.phpeclipse.externaltools.ProgramLaunchConfigurationType"
97                         builderType="net.sourceforge.phpeclipse.externaltools.ProgramBuilderLaunchConfigurationType">
98                 </configurationMap>
99         </extension>
100
101         <extension point = "org.eclipse.debug.ui.launchConfigurationTabGroups">
102                 <launchConfigurationTabGroup
103                         id="net.sourceforge.phpdt.externaltools.launchConfigurationTabGroup.program"
104                         type ="net.sourceforge.phpeclipse.externaltools.ProgramLaunchConfigurationType"
105                         class="net.sourceforge.phpdt.externaltools.internal.program.launchConfigurations.ProgramTabGroup">
106                 </launchConfigurationTabGroup>
107                 <launchConfigurationTabGroup
108                         id="net.sourceforge.phpdt.externaltools.launchConfigurationTabGroup.program.builder"
109                         type ="net.sourceforge.phpeclipse.externaltools.ProgramBuilderLaunchConfigurationType"
110                         class="net.sourceforge.phpdt.externaltools.internal.program.launchConfigurations.ProgramBuilderTabGroup">
111                 </launchConfigurationTabGroup>
112         </extension>
113
114         <extension point="org.eclipse.debug.ui.launchConfigurationTypeImages">
115                 <launchConfigurationTypeImage
116                         id="net.sourceforge.phpdt.externaltools.launchConfigurationTypeImage.program"
117                         configTypeID="net.sourceforge.phpeclipse.externaltools.ProgramLaunchConfigurationType"
118                         icon="icons/full/obj16/external_tools.gif">
119                 </launchConfigurationTypeImage>
120                 <launchConfigurationTypeImage
121                         id="net.sourceforge.phpdt.externaltools.launchConfigurationTypeImage.program.builder"
122                         configTypeID="net.sourceforge.phpeclipse.externaltools.ProgramBuilderLaunchConfigurationType"
123                         icon="icons/full/obj16/external_tools.gif">
124                 </launchConfigurationTypeImage>
125         </extension>
126
127         <!-- Variable Extensions -->
128         <extension point="net.sourceforge.phpeclipse.externaltools.fileVariables">
129                 <variable
130                         tag="workspace_loc"
131                         description="Expands to the workspace root's absolute file system path."
132                         expanderClass="net.sourceforge.phpdt.externaltools.variable.WorkspaceExpander">
133                 </variable>
134                 <variable
135                         tag="resource_loc"
136                         description="Expands to the resource's absolute file system path."
137                         componentClass="net.sourceforge.phpdt.externaltools.variable.SpecificFileResourceComponent"
138                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ResourceExpander">
139                 </variable>
140         </extension>
141
142         <extension point="net.sourceforge.phpeclipse.externaltools.argumentVariables">
143                 <variable
144                         tag="workspace_loc"
145                         description="Expands to the workspace root's absolute file system path."
146                         expanderClass="net.sourceforge.phpdt.externaltools.variable.WorkspaceExpander">
147                 </variable>
148                 <variable
149                         tag="file_loc"
150                         description="Expands to the full file name"
151                         expanderClass="net.sourceforge.phpdt.externaltools.variable.FileExpander">
152                 </variable>
153                 <variable
154                         tag="file_url"
155                         description="Expands to an URL with the localhost preference settings"
156                         expanderClass="net.sourceforge.phpdt.externaltools.variable.UrlExpander">
157                 </variable>
158                 <variable
159                         tag="localhost_url"
160                         description="Expands to the localhost preference settings."
161                         expanderClass="net.sourceforge.phpdt.externaltools.variable.LocalhostExpander">
162                 </variable>
163                 <variable
164                         tag="project_loc"
165                         description="Expands to the selected resource's project absolute file system path."
166                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ResourceProjectExpander">
167                 </variable>
168                 <variable
169                         tag="project_path"
170                         description="Expands to the full path, relative to the workspace root, of the selected project"
171                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ProjectExpander">
172                 </variable>
173                 <variable
174                         tag="project_name"
175                         description="Expands to the name of the selected project"
176                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ProjectNameExpander">
177                 </variable>
178                 <variable
179                         tag="resource_loc"
180                         description="Expands to the resource's absolute file system path."
181                         componentClass="net.sourceforge.phpdt.externaltools.variable.SpecificFileResourceComponent"
182                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ResourceExpander">
183                 </variable>
184                 <variable
185                         tag="container_loc"
186                         description="Expands to the selected resource's containing folder absolute file system path."
187                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ResourceContainerExpander">
188                 </variable>
189                 <variable
190                         tag="build_type"
191                         description="Expands to the type of build"
192                         expanderClass="net.sourceforge.phpdt.externaltools.variable.BuildTypeExpander">
193                 </variable>
194         </extension>
195
196         <extension point="net.sourceforge.phpeclipse.externaltools.directoryVariables">
197                 <variable
198                         tag="workspace_loc"
199                         description="Expands to the workspace root's absolute file system path."
200                         expanderClass="net.sourceforge.phpdt.externaltools.variable.WorkspaceExpander">
201                 </variable>
202                 <variable
203                         tag="project_loc"
204                         description="Expands to the selected resource's project absolute file system path."
205                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ResourceProjectExpander">
206                 </variable>
207                 <variable
208                         tag="container_loc"
209                         description="Expands to the selected resource's containing folder absolute file system path."
210                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ResourceContainerExpander">
211                 </variable>
212                 <variable
213                         tag="resource_loc"
214                         description="Expands to a resource's absolute file system path."
215                         componentClass="net.sourceforge.phpdt.externaltools.variable.SpecificFolderResourceComponent"
216                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ResourceExpander">
217                 </variable>
218         </extension>
219
220         <extension point="net.sourceforge.phpeclipse.externaltools.refreshVariables">
221                 <variable
222                         tag="workspace"
223                         description="Expands to the workspace root."
224                         expanderClass="net.sourceforge.phpdt.externaltools.variable.WorkspaceExpander">
225                 </variable>
226                 <variable
227                         tag="project"
228                         description="Expands to the project of the selected resource."
229                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ResourceProjectExpander">
230                 </variable>
231                 <variable
232                         tag="container"
233                         description="Expands to the folder containing the selected resource."
234                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ResourceContainerExpander">
235                 </variable>
236                 <variable
237                         tag="resource"
238                         description="Expands to a resource."
239                         componentClass="net.sourceforge.phpdt.externaltools.variable.ResourceComponent"
240                         expanderClass="net.sourceforge.phpdt.externaltools.variable.ResourceExpander">
241                 </variable>
242                 <variable
243                         tag="working_set"
244                         description="Expands to the group of resources in a working set."
245                         expanderClass="net.sourceforge.phpdt.externaltools.variable.WorkingSetExpander">
246                 </variable>
247         </extension>
248         <extension
249                  point="org.eclipse.ui.preferencePages">
250           <page
251                         name="PHP External Tools"
252                         category="net.sourceforge.phpeclipse.ui.preferencePage"
253                         class="net.sourceforge.phpdt.externaltools.preferences.PHPExternalToolsPreferencePage"
254                         id="net.sourceforge.phpdt.externaltools.preferences">
255           </page>
256           <page
257                         category="net.sourceforge.phpdt.externaltools.preferences"
258                         class="net.sourceforge.phpdt.externaltools.preferences.XamppPrefencePage"
259                         id="net.sourceforge.phpeclipse.externaltools.xampp.preferences"
260                         name="XAMPP"/>
261           <page
262                         category="net.sourceforge.phpdt.externaltools.preferences"
263                         class="net.sourceforge.phpdt.externaltools.preferences.MySQLPreferencePage"
264                         id="net.sourceforge.phpeclipse.externaltools.mysql.preferences"
265                         name="MySQL"/>
266           <page
267                         category="net.sourceforge.phpdt.externaltools.preferences"
268                         class="net.sourceforge.phpdt.externaltools.preferences.ApachePrefencePage"
269                         id="net.sourceforge.phpeclipse.externaltools.apache.preferences"
270                         name="Apache"/>
271         </extension>
272
273         <extension
274                  point="org.eclipse.ui.perspectiveExtensions">
275           <perspectiveExtension
276                         targetID="net.sourceforge.phpeclipse.PHPPerspective">
277                  <actionSet id="net.sourceforge.phpeclipse.PHPActionSet"/>
278           </perspectiveExtension>
279           <perspectiveExtension
280                    targetID="net.sourceforge.phpeclipse.PHPPerspective">
281                           <actionSet id="net.sf.eclipsetidy.ActionSet"/>
282                   </perspectiveExtension>
283    </extension>
284
285    <extension
286                  point="org.eclipse.ui.actionSets">
287           <actionSet
288                         label="PHP/Apache"
289                         visible="false"
290                         id="net.sourceforge.phpeclipse.PHPActionSet">
291                  <menu
292                            label="PHP/Apache"
293                            id="net.sourceforge.phpeclipse.PHPMenu">
294                         <separator
295                                   name="phpeclipse">
296                         </separator>
297                  </menu>
298                  <action
299                            label="Restart Apache"
300                            icon="icons/obj16/apache_restart.gif"
301                            tooltip="Restart Apache"
302                            class="net.sourceforge.phpdt.externaltools.actions.PHPRestartApacheAction"
303                            menubarPath="net.sourceforge.phpeclipse.PHPMenu/phpeclipse"
304                            toolbarPath="Normal"
305                            id="net.sourceforge.phpdt.externaltools.actions.PHPRestartApacheAction">
306                  </action>
307                  <action
308                            label="Stop Apache"
309                            icon="icons/obj16/apache_stop.gif"
310                            tooltip="Stop Apache"
311                            class="net.sourceforge.phpdt.externaltools.actions.PHPStopApacheAction"
312                            menubarPath="net.sourceforge.phpeclipse.PHPMenu/phpeclipse"
313                            toolbarPath="Normal"
314                            id="net.sourceforge.phpdt.externaltools.actions.PHPStopApacheAction">
315                  </action>
316                  <action
317                            label="Start Apache"
318                            icon="icons/obj16/apache.gif"
319                            tooltip="Start Apache"
320                            class="net.sourceforge.phpdt.externaltools.actions.PHPStartApacheAction"
321                            menubarPath="net.sourceforge.phpeclipse.PHPMenu/phpeclipse"
322                            toolbarPath="Normal"
323                            id="net.sourceforge.phpdt.externaltools.actions.PHPStartApacheAction">
324                  </action>
325                  <action
326                            label="Start MySQL"
327                            icon="icons/obj16/sql.gif"
328                            tooltip="Start MySQL"
329                            class="net.sourceforge.phpdt.externaltools.actions.PHPStartMySQLAction"
330                            menubarPath="net.sourceforge.phpeclipse.PHPMenu/phpeclipse"
331                            toolbarPath="Normal"
332                            id="net.sourceforge.phpdt.externaltools.actions.PHPStartMySQLAction">
333                  </action>
334                  <action
335                            label="Stop XAMPP"
336                            icon="icons/obj16/xampp_stop.gif"
337                            tooltip="Stop XAMPP"
338                            class="net.sourceforge.phpdt.externaltools.actions.PHPStopXAMPPAction"
339                            menubarPath="net.sourceforge.phpeclipse.PHPMenu/phpeclipse"
340                            toolbarPath="Normal"
341                            id="net.sourceforge.phpdt.externaltools.actions.PHPStopXAMPPAction">
342                  </action>
343                  <action
344                            label="Start XAMPP"
345                            icon="icons/obj16/xampp_start.gif"
346                            tooltip="Start XAMPP"
347                            class="net.sourceforge.phpdt.externaltools.actions.PHPStartXAMPPAction"
348                            menubarPath="net.sourceforge.phpeclipse.PHPMenu/phpeclipse"
349                            toolbarPath="Normal"
350                            id="net.sourceforge.phpdt.externaltools.actions.PHPStartXAMPPAction">
351                  </action>
352           </actionSet>
353         </extension>
354
355         <extension
356                  point="org.eclipse.ui.popupMenus">
357           <objectContribution
358                         objectClass="org.eclipse.core.resources.IFile"
359                         nameFilter="*.php"
360                         id="net.sourceforge.phpdt.externaltools.actions.externalParserAction">
361                  <action
362                            label="Run External PHP Parser"
363                            class="net.sourceforge.phpdt.externaltools.actions.PHPExternalParserAction"
364                            menubarPath="additions"
365                            id="net.sourceforge.phpdt.externaltools.actions.externalParserAction">
366                  </action>
367           </objectContribution>
368           <objectContribution
369                         objectClass="org.eclipse.core.resources.IFile"
370                         nameFilter="*.php3"
371                         id="net.sourceforge.phpdt.externaltools.actions.externalParserAction">
372                  <action
373                            label="Run External PHP Parser"
374                            class="net.sourceforge.phpdt.externaltools.actions.PHPExternalParserAction"
375                            menubarPath="additions"
376                            id="net.sourceforge.phpdt.externaltools.actions.externalParserAction">
377                  </action>
378           </objectContribution>
379           <objectContribution
380                         objectClass="org.eclipse.core.resources.IFile"
381                         nameFilter="*.php4"
382                         id="net.sourceforge.phpdt.externaltools.actions.externalParserAction">
383                  <action
384                            label="Run External PHP Parser"
385                            class="net.sourceforge.phpdt.externaltools.actions.PHPExternalParserAction"
386                            menubarPath="additions"
387                            id="net.sourceforge.phpdt.externaltools.actions.externalParserAction">
388                  </action>
389           </objectContribution>
390           <objectContribution
391                         objectClass="org.eclipse.core.resources.IFile"
392                         nameFilter="*.php5"
393                         id="net.sourceforge.phpdt.externaltools.actions.externalParserAction">
394                  <action
395                            label="Run External PHP Parser"
396                            class="net.sourceforge.phpdt.externaltools.actions.PHPExternalParserAction"
397                            menubarPath="additions"
398                            id="net.sourceforge.phpdt.externaltools.actions.externalParserAction">
399                  </action>
400           </objectContribution>
401           <objectContribution
402                         objectClass="org.eclipse.core.resources.IFile"
403                         nameFilter="*.module"
404                         id="net.sourceforge.phpdt.externaltools.actions.externalParserAction">
405                  <action
406                            label="Run External PHP Parser"
407                            class="net.sourceforge.phpdt.externaltools.actions.PHPExternalParserAction"
408                            menubarPath="additions"
409                            id="net.sourceforge.phpdt.externaltools.actions.externalParserAction">
410                  </action>
411           </objectContribution>
412           <objectContribution
413                         objectClass="org.eclipse.core.resources.IFile"
414                         nameFilter="*.inc"
415                         id="net.sourceforge.phpdt.externaltools.actions.externalParserAction">
416                  <action
417                            label="Run External PHP Parser"
418                            class="net.sourceforge.phpdt.externaltools.actions.PHPExternalParserAction"
419                            menubarPath="additions"
420                            id="net.sourceforge.phpdt.externaltools.actions.externalParserAction">
421                  </action>
422           </objectContribution>
423         </extension>
424 </plugin>