Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-debug-dev] debugger plugin: access to inspected object via IJavaVariable


I saw your question on the newsgroup just now....

You can get an IJavaObject via the debug API. Each IJavaVariable has an associated value - available by #getValue(). Each value in the Java debug model is an IJavaValue. If it is an instance of IJavaObject, you can cast, it as such to retreive the associated object information. You cannot get an instance of "java.lang.Object" (if that's what you're looking for). The object is in a different VM.

Darin



"Tanja Scharf" <tanja.scharf@xxxxxx>
Sent by: jdt-debug-dev-admin@xxxxxxxxxxx

09/30/2003 08:28 AM
Please respond to jdt-debug-dev

       
        To:        jdt-debug-dev@xxxxxxxxxxx
        cc:        
        Subject:        [jdt-debug-dev] debugger plugin: access to inspected object via IJavaVariable



We are writing a plugin that calls a Swing object explorer on a selected variable in the debugging view. What Eclipse gives to our plugin action isan ISelection instance which can be casted into an IJavaVariable instance.
We do not find any possibility to get the origin business class instance that is inspected in the variable view. Is it possible at all?
Thanks for any help on this,
Tanja

______________________________________________________________________________
Zwei Mal Platz 1 mit dem jeweils besten Testergebnis! WEB.DE FreeMail
und WEB.DE Club bei Stiftung Warentest!
http://f.web.de/?mc=021183 _______________________________________________ jdt-debug-dev mailing list jdt-debug-dev@xxxxxxxxxxx http://dev.eclipse.org/mailman/listinfo/jdt-debug-dev


Back to the top