[jbosstools-issues] [JBoss JIRA] Issue Comment Edited: (JBIDE-9448) EL tooltip doesn't work

Victor Rubezhny (JIRA) jira-events at lists.jboss.org
Fri Aug 5 11:27:48 EDT 2011


    [ https://issues.jboss.org/browse/JBIDE-9448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618986#comment-12618986 ] 

Victor Rubezhny edited comment on JBIDE-9448 at 8/5/11 11:27 AM:
-----------------------------------------------------------------

I found what the real problem is. 
The issue is caused by fixing JBIDE-8350 which caused regression. While fixing JBIDE-8350 the ChainedTextHover, created in lines 207-208 of org.jboss.tools.jst.jsp.HTMLTextViewerConfiguration.getTextHover(ISourceViewer, String, int) method, was replaced by MarkerProblemAnnotationHoverProcessor. Probably this solved JBIDE-8350, but at the same time this completely killed all other possible hovers to display their information.


      was (Author: vrubezhny):
    The reason why tooltips don't work is the change of default value for Window->Preferences->General->Editors->Structured Text Editor->Hovers(Tab) preference.
For now, there is a table of available hovers and their enable/disable statuses as well as modifiers for the hover invocation.
And now the Documentation Description Hovers are disabled (A Combined Hover is enabled instead of the Documentation Description hover)
It seems that this preference is a new one or was not taken into account earlier or just the default is to reconfigured to disable the Document Description hovers.

We are using our own "combined"-like ChainTextHover to deal with multiple hovers defined for the same partition type but this works if the Documentation Description Hovers are enabled. Also, our ChainTextHover is used to acquire JBoss Tools hovers first in the hovers chain.

Replacing the Document Description hover by Combined Hover by default currently disabled all the hovers on HTML/JSP/XML and other source editors causing this issue.

Probably the kosher way is to learn on what the Combined Hover is and how we can use it, but the simplest and shortest way is to add a code that restores an Old defaults for this preference.

When doing this manually (enabling the Documentation Description Hover) I faced another problems: (1) the Hover Control which currently is not available to show HTML text for the hover. This probably also is changed (but I didn't discovered a reason yet). (2) Our ChainTextHover is not used after the preference value change (the 2-line-fix prevents this problem)

What shall we do with this?
  
> EL tooltip doesn't work
> -----------------------
>
>                 Key: JBIDE-9448
>                 URL: https://issues.jboss.org/browse/JBIDE-9448
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: jsp/jsf/xml source editing
>    Affects Versions: 3.3.0.M3
>            Reporter: Alexey Kazakov
>            Assignee: Victor Rubezhny
>            Priority: Critical
>             Fix For: 3.3.0.M3
>
>
> EXECUTE: Create a seam web project
> EXECUTE: Open home.xhtml
> EXECUTE: Add #{authenticator.authenticate()} to any place of the page
> EXECUTE: Point mouse to the EL
> FAILURE: No tooltip appears.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list