|Java debugger plugin help needed [message #665030]
||Tue, 12 April 2011 23:41
Registered: April 2011
I would like to write a plugin for the Java Debug perspective that will graphically display certain variables for the user. For example, an Image variable would show the actual image, or a Polygon variable would draw the actual Polygon.|
Currently, I can generate and run (in the debug instance) the proper code to draw a variable to an image, and retrieve that information from the debugger. Right now, I display everything in an AbstractDebugView stacked next to the VariableView (top right, by default for me). However, I don't like this because it's out of context, slow, and inefficient. It currently searches through the stack of each thread and looks for any variables it knows how to display and then displays them.
I would much rather let the user point to a variable in the editor and request that information. My initial idea was to extend the popup dialog that comes up when you hover over an in-scope variable while debugging (approach A). Another alternative would be to implement something separate that would also show up (in addition to the normal one) for certain variables (approach B).
I can't figure out which class is used for the popup dialog in debug mode. So my questions would be: which class is it? and once I extend that class, how do I tell Eclipse to use my extension?
I have identified the interfaces IJavaEditorTextHover and ITextHoverExtension2 as interfaces I will probably have to implement. However, I cannot figure out how to hook them into the debug editor.
Thanks in advance for any help you can provide.
Powered by FUDForum
. Page generated in 0.01710 seconds