Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraleherbau2011-05-05 07:19:36 +0000
committeraleherbau2011-05-05 07:19:36 +0000
commit837458856781c52e4b635897c787180c15b58ce6 (patch)
tree15e213d24e07ad0e2309a13e5f9dd92689147c67 /plugins/org.eclipse.tm.tcf.cdt.ui/plugin.xml
parentdd1b024f2acacb34a65d888f7ebda661f263563b (diff)
downloadorg.eclipse.tcf-837458856781c52e4b635897c787180c15b58ce6.tar.gz
org.eclipse.tcf-837458856781c52e4b635897c787180c15b58ce6.tar.xz
org.eclipse.tcf-837458856781c52e4b635897c787180c15b58ce6.zip
TCF Debugger: Add Watchpoint in Editor and Variables/Expressions view
Diffstat (limited to 'plugins/org.eclipse.tm.tcf.cdt.ui/plugin.xml')
-rw-r--r--plugins/org.eclipse.tm.tcf.cdt.ui/plugin.xml82
1 files changed, 54 insertions, 28 deletions
diff --git a/plugins/org.eclipse.tm.tcf.cdt.ui/plugin.xml b/plugins/org.eclipse.tm.tcf.cdt.ui/plugin.xml
index 8025f0fa0..62a22b176 100644
--- a/plugins/org.eclipse.tm.tcf.cdt.ui/plugin.xml
+++ b/plugins/org.eclipse.tm.tcf.cdt.ui/plugin.xml
@@ -28,30 +28,15 @@
<factory
adaptableType="org.eclipse.tm.internal.tcf.debug.ui.model.TCFNode"
class="org.eclipse.tm.internal.tcf.cdt.ui.TCFNodeAdapterFactory">
- <adapter
- type="org.eclipse.cdt.debug.core.model.ISteppingModeTarget">
- </adapter>
- <adapter
- type="org.eclipse.debug.core.model.ISuspendResume">
- </adapter>
- <adapter
- type="org.eclipse.cdt.ui.text.c.hover.ICEditorTextHover">
- </adapter>
- <adapter
- type="org.eclipse.cdt.debug.core.model.IReverseToggleHandler">
- </adapter>
- <adapter
- type="org.eclipse.cdt.debug.core.model.IReverseStepIntoHandler">
- </adapter>
- <adapter
- type="org.eclipse.cdt.debug.core.model.IReverseStepOverHandler">
- </adapter>
- <adapter
- type="org.eclipse.cdt.debug.core.model.IReverseResumeHandler">
- </adapter>
- <adapter
- type="org.eclipse.cdt.debug.core.model.IUncallHandler">
- </adapter>
+ <adapter type="org.eclipse.cdt.debug.core.model.ISteppingModeTarget"/>
+ <adapter type="org.eclipse.debug.core.model.ISuspendResume"/>
+ <adapter type="org.eclipse.cdt.ui.text.c.hover.ICEditorTextHover"/>
+ <adapter type="org.eclipse.cdt.debug.core.model.IReverseToggleHandler"/>
+ <adapter type="org.eclipse.cdt.debug.core.model.IReverseStepIntoHandler"/>
+ <adapter type="org.eclipse.cdt.debug.core.model.IReverseStepOverHandler"/>
+ <adapter type="org.eclipse.cdt.debug.core.model.IReverseResumeHandler"/>
+ <adapter type="org.eclipse.cdt.debug.core.model.IUncallHandler"/>
+ <adapter type="org.eclipse.cdt.debug.internal.core.ICWatchpointTarget"/>
</factory>
</extension>
@@ -288,16 +273,25 @@
plugin="org.eclipse.tm.tcf.cdt.core">
</statusHandler>
</extension>
+
<extension
point="org.eclipse.ui.commands">
<command
categoryId="org.eclipse.debug.ui.category.run"
defaultHandler="org.eclipse.tm.internal.tcf.cdt.ui.commands.AddFunctionBreakointHandler"
- description="Allows to add a new function breakpoint on an arbitrary symbol"
+ description="%command.addFunctionBreakpoint.desc"
id="org.eclipse.tm.tcf.cdt.ui.add_function_breakpoint"
- name="Add Function Breakpoint">
+ name="%command.addFunctionBreakpoint.name">
+ </command>
+ <command
+ categoryId="org.eclipse.debug.ui.category.run"
+ defaultHandler="org.eclipse.tm.internal.tcf.cdt.ui.commands.AddWatchpointHandler"
+ description="%command.addWatchpoint.desc"
+ id="org.eclipse.tm.tcf.cdt.ui.add_watchpoint"
+ name="%command.addWatchpoint.name">
</command>
</extension>
+
<extension
point="org.eclipse.ui.menus">
<menuContribution
@@ -305,12 +299,44 @@
locationURI="menu:org.eclipse.debug.ui.BreakpointView?after=additions">
<command
commandId="org.eclipse.tm.tcf.cdt.ui.add_function_breakpoint"
- icon="icons/obj16/funbrkp_obj.gif"
+ icon="platform:/plugin/org.eclipse.cdt.debug.ui/icons/obj16/funbrkp_obj.gif"
id="org.eclipse.tm.tcf.cdt.ui.add_function_breakpoint"
- label="Add Function Breakpoint (C/C++)..."
+ label="%item.addFunctionBreakpoint.name"
+ style="push">
+ </command>
+ </menuContribution>
+ <menuContribution
+ allPopups="false"
+ locationURI="popup:#CEditorContext?after=group.debug">
+ <command
+ commandId="org.eclipse.tm.tcf.cdt.ui.add_watchpoint"
+ icon="platform:/plugin/org.eclipse.cdt.debug.ui/icons/elcl16/watchpoint_co.gif"
+ id="org.eclipse.tm.tcf.cdt.ui.add_watchpoint.editor"
+ label="%item.addWatchpoint.name"
style="push">
+ <visibleWhen checkEnabled="false">
+ <with variable="activeContexts">
+ <iterate ifEmpty="false" operator="or">
+ <equals value="org.eclipse.tm.tcf.debug.ui.debugging"/>
+ </iterate>
+ </with>
+ </visibleWhen>
</command>
</menuContribution>
</extension>
+ <extension point="org.eclipse.ui.popupMenus">
+ <objectContribution
+ objectClass="org.eclipse.tm.internal.tcf.debug.ui.model.TCFNodeExpression"
+ id="org.eclipse.tcf.cdt.ui.WatchpointActions">
+ <action
+ class="org.eclipse.cdt.debug.internal.ui.actions.AddWatchpointOnVariableActionDelegate"
+ enablesFor="1"
+ icon="platform:/plugin/org.eclipse.cdt.debug.ui/icons/elcl16/watchpoint_co.gif"
+ id="org.eclipse.tcf.cdt.ui.actions.AddWatchpointOnVariable"
+ label="%action.addWatchpoint.label"
+ menubarPath="additions"/>
+ </objectContribution>
+ </extension>
+
</plugin>

Back to the top