Avoid NPE when deleting a project
[phpeclipse.git] / net.sourceforge.phpeclipse.phphelp / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.0"?>
3 <plugin
4    id="net.sourceforge.phpeclipse.phphelp"
5    name="%pluginName"
6    version="1.1.3"
7    provider-name="%providerName"
8    class="net.sourceforge.phpdt.phphelp.PHPHelpPlugin">
9
10    <runtime>
11       <library name="phphelp.jar">
12       <export name="*"/>
13       </library>
14    </runtime>
15    <requires>
16       <import plugin="org.eclipse.core.runtime.compatibility"/>
17       <import plugin="org.eclipse.ui.ide"/>
18       <import plugin="org.eclipse.ui.views"/>
19       <import plugin="org.eclipse.jface.text"/>
20       <import plugin="org.eclipse.ui.workbench.texteditor"/>
21       <import plugin="org.eclipse.ui.editors"/>
22       <import plugin="org.eclipse.core.resources"/>
23       <import plugin="org.eclipse.ui"/>
24       <import plugin="org.eclipse.help"/>
25       <import plugin="org.eclipse.swt"/>
26       <import plugin="net.sourceforge.phpeclipse"/>
27    </requires>
28    <extension
29          point="org.eclipse.ui.popupMenus">   
30       <viewerContribution
31             targetID="#PHPEditorContext"
32             id="net.sourceforge.phpdt.phphelp.actions.popup.editor">
33          <action
34                definitionId="net.sourceforge.phpdt.phphelp.actions.contexthelp"
35                label="%phphelpLabel"
36                class="net.sourceforge.phpdt.phphelp.actions.PHPEclipseShowContextHelp"
37                menubarPath="additions"
38                id="net.sourceforge.phpdt.phphelp.actions.PHPEclipseShowContextHelp">
39          </action>
40       </viewerContribution>
41    </extension>
42   
43    <extension
44          point="org.eclipse.ui.editorActions">
45       <editorContribution 
46             id="net.sourceforge.phpdt.phphelp.actions"
47             targetID="net.sourceforge.phpeclipse.PHPUnitEditor">
48          <action
49                definitionId="net.sourceforge.phpdt.phphelp.actions.contexthelp"
50                label="PHP Help"
51                class="net.sourceforge.phpdt.phphelp.actions.PHPEclipseShowContextHelp"
52                id="net.sourceforge.phpdt.phphelp.actions.PHPEclipseShowContextHelp">
53          </action>
54       </editorContribution>
55    </extension>   
56    
57    <extension point="org.eclipse.ui.contexts">
58       <context 
59         name="%context.editingPHPSource.name" 
60         description="%context.editingPHPSource.description" 
61         parentId="org.eclipse.ui.textEditorScope" 
62         id="net.sourceforge.phpdt.ui.phpEditorScope" /> 
63    </extension>
64    <extension
65          point="org.eclipse.ui.commands">
66       <category
67             name="%category.source.name"
68             description="%category.source.description"
69             id="net.sourceforge.phpeclipse.ui.category.source">
70       </category>
71     
72       <command
73             name="%ActionDefinition.contexthelp.name"
74             description="%ActionDefinition.contexthelp.description"
75             category="net.sourceforge.phpeclipse.ui.category.source"
76             id="net.sourceforge.phpdt.phphelp.actions.contexthelp">
77       </command>
78      
79       <keyBinding
80             string="Ctrl+Shift+H"
81             scope="net.sourceforge.phpdt.ui.phpEditorScope"
82             command="net.sourceforge.phpdt.phphelp.actions.contexthelp"
83             configuration="org.eclipse.ui.defaultAcceleratorConfiguration">
84       </keyBinding>
85   </extension>
86   
87   <extension
88          point="org.eclipse.help.toc">
89       <toc
90             file="phphelp.xml"
91             primary="true">
92       </toc>
93    </extension>
94    <extension
95          point="org.eclipse.ui.preferencePages">
96       <page
97             name="%phphelpFormat"
98             category="net.sourceforge.phpeclipse.preference.PHPEclipsePreferencePage"
99             class="net.sourceforge.phpdt.phphelp.PHPHelpPreferencePage"
100             id="net.sourceforge.phpdt.phphelp.PHPHelpPreferencePage">
101       </page>
102    </extension>
103 </plugin>