2
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
2 |
|
|
3 |
<!--
|
|
4 |
Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
|
5 |
Use of this source code is governed by a BSD-style license that can be
|
|
6 |
found in the LICENSE file.
|
|
7 |
-->
|
|
8 |
|
|
9 |
<plugin>
|
|
10 |
<extension point="org.eclipse.debug.ui.debugModelPresentations">
|
|
11 |
<debugModelPresentation
|
|
12 |
class="org.chromium.debug.ui.JsDebugModelPresentation"
|
|
13 |
id="org.chromium.debug">
|
|
14 |
</debugModelPresentation>
|
|
15 |
</extension>
|
|
16 |
|
|
17 |
<extension point="org.eclipse.core.variables.valueVariables">
|
|
18 |
<variable
|
|
19 |
initialValue="9222"
|
|
20 |
name="org.chromium.debug.ui.chromium_debug_port"
|
|
21 |
description="ChromeDevTools Protocol connection port">
|
|
22 |
</variable>
|
|
23 |
</extension>
|
|
24 |
|
|
25 |
<extension point="org.eclipse.debug.core.launchConfigurationTypes">
|
|
26 |
<launchConfigurationType
|
|
27 |
id="org.chromium.debug.ui.LaunchType$Chromium"
|
|
28 |
delegate="org.chromium.debug.ui.launcher.ChromiumLaunchType"
|
|
29 |
modes="debug"
|
|
30 |
name="%chromiumLaunchName"
|
|
31 |
delegateName="Debug Chromium JavaScript"
|
|
32 |
delegateDescription="JavaScript debugger for Chromium">
|
|
33 |
</launchConfigurationType>
|
|
34 |
<launchConfigurationType
|
|
35 |
id="org.chromium.debug.ui.LaunchType$StandaloneV8"
|
|
36 |
delegate="org.chromium.debug.ui.launcher.StandaloneV8LaunchType"
|
|
37 |
modes="debug"
|
|
38 |
name="%standaloneV8LaunchName"
|
|
39 |
delegateName="Debug Standalone V8 JavaScript"
|
|
40 |
delegateDescription="JavaScript debugger for Standalone V8">
|
|
41 |
</launchConfigurationType>
|
|
42 |
<launchConfigurationType
|
|
43 |
id="org.chromium.debug.ui.ConsolePseudoConfigurationType"
|
|
44 |
modes="org.chromium.debug.pseudotype"
|
|
45 |
name="%consolePseudoLaunchName">
|
|
46 |
</launchConfigurationType>
|
|
47 |
</extension>
|
|
48 |
|
|
49 |
<extension point="org.eclipse.debug.ui.launchConfigurationTypeImages">
|
|
50 |
<launchConfigurationTypeImage
|
|
51 |
id="org.chromium.debug.ui.LaunchConfigTypeImage$Chromium"
|
|
52 |
configTypeID="org.chromium.debug.ui.LaunchType$Chromium"
|
|
53 |
icon="res/chromium_16.png">
|
|
54 |
</launchConfigurationTypeImage>
|
|
55 |
<launchConfigurationTypeImage
|
|
56 |
id="org.chromium.debug.ui.LaunchConfigTypeImage$StandaloneV8"
|
|
57 |
configTypeID="org.chromium.debug.ui.LaunchType$StandaloneV8"
|
|
58 |
icon="res/standalone_v8_16.png">
|
|
59 |
</launchConfigurationTypeImage>
|
|
60 |
<launchConfigurationTypeImage
|
|
61 |
id="org.chromium.debug.ui.LaunchConfigTypeImageConsolePseudoConfiguration"
|
|
62 |
configTypeID="org.chromium.debug.ui.ConsolePseudoConfigurationType"
|
|
63 |
icon="res/chromium_16.png">
|
|
64 |
</launchConfigurationTypeImage>
|
|
65 |
</extension>
|
|
66 |
|
|
67 |
<extension point="org.eclipse.debug.ui.launchConfigurationTabGroups">
|
|
68 |
<launchConfigurationTabGroup
|
|
69 |
type="org.chromium.debug.ui.LaunchType$Chromium"
|
|
70 |
class="org.chromium.debug.ui.launcher.LaunchTabGroup$Chromium"
|
|
71 |
id="org.chromium.debug.ui.LaunchTabGroup$Chromium">
|
|
72 |
</launchConfigurationTabGroup>
|
|
73 |
<launchConfigurationTabGroup
|
|
74 |
type="org.chromium.debug.ui.LaunchType$StandaloneV8"
|
|
75 |
class="org.chromium.debug.ui.launcher.LaunchTabGroup$StandaloneV8"
|
|
76 |
id="org.chromium.debug.ui.LaunchTabGroup$StandaloneV8">
|
|
77 |
</launchConfigurationTabGroup>
|
|
78 |
</extension>
|
|
79 |
|
|
80 |
<extension point="org.eclipse.debug.core.watchExpressionDelegates">
|
|
81 |
<watchExpressionDelegate
|
|
82 |
debugModel="org.chromium.debug"
|
|
83 |
delegateClass="org.chromium.debug.ui.JsWatchExpressionDelegate"/>
|
|
84 |
</extension>
|
|
85 |
|
|
86 |
<extension point="org.eclipse.ui.editors">
|
|
87 |
<editor
|
|
88 |
name="JS Editor"
|
|
89 |
extensions="chromium"
|
|
90 |
default="true"
|
|
91 |
icon="res/chromium_16.png"
|
|
92 |
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
|
|
93 |
class="org.chromium.debug.ui.editors.JsEditor"
|
|
94 |
id="org.chromium.debug.ui.editors.JsEditor">
|
|
95 |
</editor>
|
|
96 |
</extension>
|
|
97 |
|
|
98 |
<extension point="org.eclipse.ui.editorActions">
|
|
99 |
<editorContribution
|
|
100 |
targetID="org.chromium.debug.ui.editors.JsEditor"
|
|
101 |
id="org.chromium.debug.ui.editors.JsEditor.editorActions">
|
|
102 |
<action
|
|
103 |
label="Not Used"
|
|
104 |
class="org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate"
|
|
105 |
style="push"
|
|
106 |
actionID="RulerDoubleClick"
|
|
107 |
id="org.chromium.debug.ui.editor.ruler.doubleClickBreakpointAction"/>
|
|
108 |
<action
|
|
109 |
toolbarPath="evaluationGroup"
|
|
110 |
id="org.chromium.debug.ui.SnippetInspect"
|
|
111 |
definitionId="org.chromium.debug.ui.commands.Inspect"
|
|
112 |
class="org.chromium.debug.ui.actions.JsInspectSnippetAction"
|
|
113 |
enablesFor="+"
|
|
114 |
label="Inspect"
|
|
115 |
tooltip="Inspect Result of Evaluating Selected Text">
|
|
116 |
<enablement>
|
|
117 |
<and>
|
|
118 |
<systemProperty
|
|
119 |
name="org.chromium.debug.ui.debuggerActive"
|
|
120 |
value="true"/>
|
|
121 |
<objectClass
|
|
122 |
name="org.eclipse.jface.text.ITextSelection"/>
|
|
123 |
</and>
|
|
124 |
</enablement>
|
|
125 |
</action>
|
|
126 |
</editorContribution>
|
|
127 |
</extension>
|
|
128 |
|
|
129 |
<extension point="org.eclipse.ui.contexts">
|
|
130 |
<context
|
|
131 |
name="Chromium Debug"
|
|
132 |
parentId="org.eclipse.ui.contexts.dialogAndWindow"
|
|
133 |
description="Debug Chromium JavaScript"
|
|
134 |
id="org.chromium.debug.ui.editors.JsEditor.context">
|
|
135 |
</context>
|
|
136 |
</extension>
|
|
137 |
|
|
138 |
<extension
|
|
139 |
point="org.eclipse.ui.decorators">
|
|
140 |
<decorator
|
|
141 |
label="%ChromiumJavascriptDecorator.label"
|
|
142 |
id="org.chromium.debug.ui.decorators.ChromiumJavaScript"
|
|
143 |
state="true"
|
|
144 |
class="org.chromium.debug.ui.ChromiumJavascriptDecorator">
|
|
145 |
<enablement>
|
|
146 |
<and>
|
|
147 |
<objectClass name="org.eclipse.core.resources.IFile"/>
|
|
148 |
<objectState name="name" value="*.chromium"/>
|
|
149 |
</and>
|
|
150 |
</enablement>
|
|
151 |
</decorator>
|
|
152 |
</extension>
|
|
153 |
|
|
154 |
<extension point="org.eclipse.ui.commands">
|
|
155 |
<command
|
|
156 |
categoryId="org.eclipse.debug.ui.category.run"
|
|
157 |
description="Modify breakpoint properties"
|
|
158 |
name="Breakpoint Properties..."
|
|
159 |
id="org.chromium.debug.ui.breakpoint.properties">
|
|
160 |
</command>
|
|
161 |
<command
|
|
162 |
categoryId="org.eclipse.debug.ui.category.run"
|
|
163 |
description="Inspect result of evaluating selected text"
|
|
164 |
id="org.chromium.debug.ui.commands.Inspect"
|
|
165 |
name="Inspect">
|
|
166 |
</command>
|
|
167 |
</extension>
|
|
168 |
|
|
169 |
<extension point="org.eclipse.ui.bindings">
|
|
170 |
<key
|
|
171 |
sequence="M1+M2+I"
|
|
172 |
contextId="org.chromium.debug.ui.editors.JsEditor.context"
|
|
173 |
commandId="org.chromium.debug.ui.commands.Inspect"
|
|
174 |
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
|
|
175 |
</extension>
|
|
176 |
|
|
177 |
<extension point="org.eclipse.ui.popupMenus">
|
|
178 |
<viewerContribution
|
|
179 |
targetID="org.chromium.debug.ui.editors.JsEditor.ruler"
|
|
180 |
id="org.chromium.debug.ui.editors.JsEditor.popupMenus">
|
|
181 |
<action
|
|
182 |
label="Toggle Breakpoint"
|
|
183 |
class="org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate"
|
|
184 |
menubarPath="debug"
|
|
185 |
id="org.chromium.debug.ui.actions.EnableDisableBreakpointAction"/>
|
|
186 |
<action
|
|
187 |
label="Breakpoint Properties..."
|
|
188 |
class="org.chromium.debug.ui.actions.JsBreakpointPropertiesRulerActionDelegate"
|
|
189 |
menubarPath="group.properties"
|
|
190 |
id="org.chromium.debug.ui.actions.JavaBreakpointPropertiesRulerActionDelegate">
|
|
191 |
</action>
|
|
192 |
<action
|
|
193 |
label="Toggle Enablement"
|
|
194 |
class="org.eclipse.debug.ui.actions.RulerEnableDisableBreakpointActionDelegate"
|
|
195 |
menubarPath="debug"
|
|
196 |
id="org.chromium.debug.ui.actions.EnableDisableBreakpointRulerActionDelegate">
|
|
197 |
</action>
|
|
198 |
</viewerContribution>
|
|
199 |
</extension>
|
|
200 |
<extension
|
|
201 |
point="org.eclipse.ui.popupMenus">
|
|
202 |
<objectContribution
|
|
203 |
objectClass="org.chromium.debug.core.model.Variable"
|
|
204 |
id="org.chromium.debug.ui.ChromiumVariableActions">
|
|
205 |
<action
|
|
206 |
label="%OpenFunctionAction.label"
|
|
207 |
class="org.chromium.debug.ui.actions.OpenFunctionAction"
|
|
208 |
menubarPath="emptyNavigationGroup"
|
|
209 |
enablesFor="1"
|
|
210 |
id="org.chromium.debug.ui.actions.OpenFunctionAction">
|
|
211 |
</action>
|
|
212 |
</objectContribution>
|
|
213 |
</extension>
|
|
214 |
<extension
|
|
215 |
point="org.eclipse.ui.propertyPages">
|
|
216 |
<page
|
|
217 |
name="Breakpoint Properties"
|
|
218 |
class="org.chromium.debug.ui.propertypages.JsLineBreakpointPage"
|
|
219 |
id="org.chromium.debug.ui.propertypages.LineBreakpoints">
|
|
220 |
<enabledWhen>
|
|
221 |
<or>
|
|
222 |
<instanceof
|
|
223 |
value="org.chromium.debug.core.model.ChromiumLineBreakpoint">
|
|
224 |
</instanceof>
|
|
225 |
<adapt
|
|
226 |
type="org.chromium.debug.core.model.ChromiumLineBreakpoint">
|
|
227 |
</adapt>
|
|
228 |
</or>
|
|
229 |
</enabledWhen>
|
|
230 |
</page>
|
|
231 |
</extension>
|
|
232 |
</plugin>
|