Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Toggle watchpoint retargetable action in variables view.
Toggle watchpoint retargetable action in variables view. [message #488247] Sat, 26 September 2009 18:11
Matthew Dickie is currently offline Matthew DickieFriend
Messages: 56
Registered: July 2009
Member
Hi all,

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
this).

Thanks in advance...

Matt D.
Previous Topic:eclipse.ini on Mac -vm being ignored
Next Topic:Retargetable breakpoint actions always enabled for text selections
Goto Forum:
  


Current Time: Fri Apr 26 22:33:00 GMT 2024

Powered by FUDForum. Page generated in 0.02690 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top