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