Skip to main content

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

Ling,

That gets a CDT object (ICStackFrame), not a CDI one. A CDI plugin does not have access to CDT types and objects. At least, that's my understanding.

John

At 12:01 PM 12/9/2005, Ling.5.Wang@xxxxxxxxx wrote:
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
_______________________________________________
cdt-debug-dev mailing list
cdt-debug-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-debug-dev



Back to the top