[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jdt-debug-dev] How to get thread reference of the current thread from VariablesView
|
I
am curently working on extending the eclipse JDT debugger to support
debugging capabilities for Graphics objects, such that Graphics
represented by the object is displayed when they are selected in the
Graphics Expressions View (extends VariablesView similar to _expression_
View). I have extended the VariablesView to provide support for
displaying graphics for graphics object. I have hindered with a problem
wherein I am trying to invoke methods on IValue (in my case
IJDIObjectValue), using sendMessage() method. I have all information
other than the current thread reference. I wanted to know if there is
any means to get access to the current thread reference from the
VariablesView in JDT Debugger. I understand that at the VariablesView
level there is only information about the DebugElement which does not
have the ThreadReference which is passed to the Debug listener. I know
that this can be accomplished by creating a new debug listener and
providing the associated information at runtime, but since I would like
to re-use most of the already existing Eclipse funtionality I would
like to know if I can access the current thread somehow. When I try to
get the Current Thread for the IJDIObjectValue using
getUnderlyingObject().owningThr
ead() it returns null.
Any inputs or suggestions are welcome.
Mangai