Created attachment 122627 [details]
The ToolTipSupport.setToolTipVisible() is primarily made for clients, who want to display a tooltip relevant to the current mouse location. The call changes internal visibility state, then asks View Hierarchy to build the tooltip contents. Some of the views then calls one of the setTooltip() overloads to actually deliver the tooltip contents.
If the originating event is not a mouse gesture (c.f. brace matching, which can display tooltip when caret moves to closing brace position), the tooltip must be still set visible, but the request should not be routed through the existing APIs, which are tied on x,y coordinates as a context.
So I propose a simple overload
setToolTipVisible(boolean visible, boolean updateFromView)
see the attachment.
for motivation, see #215520
Committed as http://hg.netbeans.org/jet-main/rev/7be2480bdf58
Integrated into 'main-golden', will be available in build *201209120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Svata Dedic <firstname.lastname@example.org>
Log: #216245: added overload for showing tooltips not based on mouse gestures