|Toggle watchpoint retargetable action in variables view. [message #488247]
||Sat, 26 September 2009 18:11
| Matthew Dickie
Registered: July 2009
How do I get the toggle watchpoint retargetable action in the Run...
menu on the menubar to become enabled when one of my variables is
selected in the Variables view (and that is the active view)?
I have a class called RetargetableActionAdapterFactory whose getAdapter
method return an instance of my class ToggleBreakpointAdapter when
adapterType is IToggleBreakpointTarget.class.
I have implemented the canToggleWatchpoints method of that class to
return true when the the selection is a IStructuredSelection of size 1
and the element is one of our variables, but that method doesn't appear
to get getting called when the active part is the Variables view. (It is
called when the active part is our editor, where the selection is a text
selection - unfortuately we don't have an AST yet, so we don't support
Thanks in advance...
Powered by FUDForum
. Page generated in 0.05679 seconds