Merging code from trunk that fixes #774, this work was done by incastrix
[phpeclipse.git] / net.sourceforge.phpeclipse.debug.ui / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.2"?>
3 <plugin>
4    <extension
5          point="org.eclipse.ui.preferencePages">
6       <page
7             name="%PreferencePage.PHPInterpreter.name"
8             category="net.sourceforge.phpeclipse.preferences.PHPPreferencePage"
9             class="net.sourceforge.phpdt.internal.debug.ui.preferences.PHPInterpreterPreferencePage"
10             id="net.sourceforge.phpdt.debug.ui.preferences.PreferencePagePHPInterpreter">
11       </page>
12    </extension>
13    <extension
14          point="org.eclipse.ui.editorActions">
15       <editorContribution
16             targetID="net.sourceforge.phpeclipse.PHPUnitEditor"
17             id="net.sourceforge.phpdt.internal.debug.ui.actions.BreakpointRulerActions">
18          <action
19                label="%Dummy.label"
20                class="net.sourceforge.phpdt.internal.debug.ui.actions.PHPManageBreakpointRulerActionDelegate"
21                actionID="RulerDoubleClick"
22                id="net.sourceforge.phpdt.internal.debug.ui.actions.ManageBreakpointRulerAction">
23          </action>
24       </editorContribution>
25    </extension>
26 <!-- Debug Model -->
27    <extension
28          point="org.eclipse.debug.ui.debugModelPresentations">
29       <debugModelPresentation
30             class="net.sourceforge.phpdt.internal.debug.ui.PHPDebugModelPresentation"
31             id="net.sourceforge.phpeclipse.debug.core">
32       </debugModelPresentation>
33    </extension>
34 <!-- Launcher extensions -->
35    <extension
36          point="org.eclipse.debug.ui.launchConfigurationTypeImages">
37       <launchConfigurationTypeImage
38             icon="icons/ctool16/run_php.gif"
39             configTypeID="net.sourceforge.phpdt.launching.LaunchConfigurationTypePHPApplication"
40             id="net.sourceforge.phpdt.debug.ui.LaunchConfigurationTypeImagePHPApplication">
41       </launchConfigurationTypeImage>
42    </extension>
43    <extension
44          point="org.eclipse.debug.ui.launchConfigurationTabGroups">
45       <launchConfigurationTabGroup
46             type="net.sourceforge.phpdt.launching.LaunchConfigurationTypePHPApplication"
47             class="net.sourceforge.phpdt.internal.debug.ui.launcher.PHPApplicationTabGroup"
48             id="net.sourceforge.phpdt.debug.ui.LaunchConfigurationTabGroupPHPApplication">
49       </launchConfigurationTabGroup>
50    </extension>
51    <extension
52          point="org.eclipse.debug.ui.launchShortcuts">
53       <shortcut
54             label="%LaunchShortcut.PHP.label"
55             icon="icons/ctool16/run_php.gif"
56             modes="run,debug"
57             class="net.sourceforge.phpdt.internal.debug.ui.launcher.PHPLaunchShortcut"
58             id="net.sourceforge.phpdt.debug.ui.applicationshortcut.php">
59       </shortcut>
60    </extension> 
61 <!-- Breakpoint Image -->
62    <extension
63          point="org.eclipse.ui.ide.markerImageProviders">
64       <imageprovider
65             markertype="net.sourceforge.phpeclipse.debug.core.phpLineBreakpointMarker"
66             icon="icons/obj16/brkp_obj.gif"
67             id="net.sourceforge.phpeclipse.debug.core.PHPLineBreakpointMarkerProvider">
68       </imageprovider>
69    </extension>
70    <extension
71          point="org.eclipse.ui.contexts">
72       <context
73             name="%Context.Debugging.name"
74             description="%Context.Debugging.description"
75             id="net.sourceforge.phpeclipse.debug.ui.debugging"
76             parentId="org.eclipse.debug.ui.debugging">
77       </context>
78    </extension>
79    <extension
80          point="org.eclipse.debug.ui.debugModelContextBindings">
81       <modelContextBinding
82             debugModelId="net.sourceforge.phpeclipse.debug.core"
83             contextId="net.sourceforge.phpeclipse.debug.ui.debugging">
84       </modelContextBinding>
85    </extension>
86    <extension
87          point="net.sourceforge.phpeclipse.phpEditorTextHovers">
88       <hover
89             label="%DebugHover.label"
90             description="%DebugHover.description"
91             class="net.sourceforge.phpdt.internal.debug.ui.PHPDebugHover"
92             id="net.sourceforge.phpdt.ui.DebugHover">
93       </hover>
94    </extension>
95    
96         <!-- Adapters for contextual launch -->
97         <extension point="org.eclipse.core.runtime.adapters">
98          <factory 
99             class="" 
100             adaptableType="net.sourceforge.phpdt.core.IJavaElement">
101             <adapter type="org.eclipse.debug.ui.actions.ILaunchable"/>
102          </factory>
103          <factory 
104             class="" 
105             adaptableType="org.eclipse.core.resources.IResource">
106             <adapter type="org.eclipse.debug.ui.actions.ILaunchable"/>
107          </factory>         
108     </extension>
109     
110    <!-- Adapters for retargettable actions -->
111         <extension point="org.eclipse.core.runtime.adapters">
112          <factory 
113             class="net.sourceforge.phpdt.internal.debug.ui.actions.RetargettableActionAdapterFactory" 
114             adaptableType="net.sourceforge.phpeclipse.phpeditor.PHPUnitEditor">
115             <adapter type="org.eclipse.debug.ui.actions.IToggleBreakpointsTarget"/>
116          </factory>
117     </extension>
118     <extension
119          point="org.eclipse.ui.popupMenus">     
120       <viewerContribution
121             targetID="#PHPRulerContext"
122             id="net.sourceforge.phpdt.ui.PHPUnitEditorPopupActions">
123          <action
124                label="%AddBreakpoint.label"
125                helpContextId="manage_breakpoint_action_context"
126                class="net.sourceforge.phpdt.internal.debug.ui.actions.PHPManageBreakpointRulerActionDelegate"
127                menubarPath="debug"
128                id="net.sourceforge.phpdt.internal.debug.ui.actions.PHPManageBreakpointRulerActionDelegate">
129          </action>
130       </viewerContribution>
131     </extension>
132     <extension
133           point="org.eclipse.ui.popupMenus">
134        <objectContribution
135              adaptable="true"
136              id="net.sourceforge.phpeclipse.debug.ui.BreakpointProperties"
137              objectClass="org.eclipse.debug.core.model.IBreakpoint">
138           <menu
139                 id="net.sourceforge.phpeclipse.debug.ui.menu2"
140                 label="Breakpoint properties menu">
141              <separator name="net.sourceforge.phpeclipse.debug.ui.separator1"/>
142           </menu>
143           <action
144                 class="net.sourceforge.phpdt.internal.debug.ui.actions.PHPDebugBreakpointAction"
145                 id="net.sourceforge.phpeclipse.debug.ui.actions.PHPDebugBreakpointAction"
146                 label="Properties"/>
147        </objectContribution>
148     </extension>
149 </plugin>