Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsJava debugger plugin help needed
https://www.eclipse.org/forums/index.php/mv/msg/207656/665030/#msg_665030
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).
Approach A:
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?
Approach B:
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.]]>Marty 2011-04-12T23:41:11-00:00Re: Java debugger plugin help needed
https://www.eclipse.org/forums/index.php/mv/msg/207656/665229/#msg_665229
Platform/JDT debug doesn't provide any custom detail panes, for variables, but you can see them in action in the breakpoints view. When creating the API we wrote a detail pane that displayed Image variables as images (I don't know where that code is now). There is an example detail pane in the jdt debug tests bundle that just displays a coloured label based on the variable's scope.
Depending on what variables your plug-in would provide detail panes for, the code could be considered for contribution into JDT. It couldn't be the default setting there, but the user would have the ability to turn on the special detail panes.]]>Curtis Windatt2011-04-13T19:27:58-00:00Re: Java debugger plugin help needed
https://www.eclipse.org/forums/index.php/mv/msg/207656/665231/#msg_665231
Marty 2011-04-13T19:33:58-00:00