Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-debug-dev] RE: querying the "active" CDI thread

Hi, John,

Maybe this code is what you want.

/**
 * Get the stack frame currently selected in debug view.
 */
static public ICStackFrame getCurrentStackFrame() {
   IAdaptable context = DebugUITools.getDebugContext();
   return ( context != null ) ? (ICStackFrame)context.getAdapter(
ICStackFrame.class ) : null;
}

-- Ling

> ----- Original Message ----- 
> From: "John Cortell" <john.cortell@xxxxxxxxxxxxx>
> To: "CDT Debug developers list" <cdt-debug-dev@xxxxxxxxxxx>
> Sent: Friday, December 09, 2005 7:05 AM
> Subject: [cdt-debug-dev] querying the "active" CDI thread
> 
> 
> > From within a CDI-extension plugin, is there a global way 
> to query the
> > CDI
> > thread object associated with the "active" thread, as per 
> the selection
> > in
> > the Debug view?
> >
> > John


Back to the top