Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-debug-dev] public way to get CBreakpointManager in EventManager

> 
> Hi,I got a question.
> 
> When some special Ibreakpoints are hit, I don't want EventManager to
> fire CDI events.But after looking around, I found that
> CBreakpointManager is the only one which knows the mapping between CDI
> breakpoints and C breakpoints. So is there a public way to get
> CDebugTarget or CBreakpointManager in the class of EventManager.Thanks!
> 

I'm not sure I follow your intentions but, When you have the selected object IDebugTarget,
you could use the IAdaptable to ask for different objects(see CDebugTarget.getAdapter()
for more details).

IDebugTarget selectedTarget = ..
CDebugTarget cdebugTarget = (CDebugTarget)selectedTarget.getAdapter(CDebugTarget.class);
if (cdebugTarget != null) {
  // cool !
}




Back to the top