This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
We have a requirement to display interactive tooltips in debugger, where the value is expandable into inner object members. That can not be accomplished with the current APIs, we need some way to provide the interactive component through the Annotation.
The displaying of anotations is performed by the editor, reassigning to them for initial evaluation. The contract of Annotation would have to be extended compatibly and the editor would need to use that enhanced contract. The other option would be for *editor* to provide extended Annotation contract (an Annotation subclass), which will then be used by the modules wishing to exploit it. This way the module would be guaranteed that the Annotation is rendered correctly.
Please have a look at http://wiki.netbeans.org/DebuggerTooltips67 where the behavior desired by debugger is described.
We need this into 6.9...
Created attachment 94419 [details] ToolTipAnnotation patch The requested API already exists even though its usage is far from straightforward. Please see the attached patch, which changes ToolTipAnnotation to show a custom JPanel rather than a plain text as an editor tooltip.
If this is not enough please reopen and describe what else is needed. Thanks
Hmm, nice. It works. :-) Thanks, I guess this is sufficient.
I've just found that it's not possible to move a mouse upon the tooltip component. As soon as I move the mouse, the component disappears. We need to be able to control the component UI by mouse and keyboard.
It should now be possible to click inside tooltip components. http://hg.netbeans.org/jet-main/rev/9072b53e794c
Integrated into 'main-golden', will be available in build *201003030200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/6828f45b0118 User: mentlicher@netbeans.org Log: #59327 - Interactive tooltips implemented for ObjectVariables. They are disabled though until issue #59336 is resolved.
Integrated into 'main-golden', will be available in build *201003040200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/9072b53e794c User: Vita Stejskal <vstejskal@netbeans.org> Log: #59336: allowing tooltips to gain focus when clicked inside by mouse