[jbosstools-issues] [JBoss JIRA] (JBIDE-16135) EL Content Assist in Java Editor: Make Content Assistant Additional Info window support URLs.

Vlado Pakan (JIRA) issues at jboss.org
Fri Feb 7 06:56:29 EST 2014


     [ https://issues.jboss.org/browse/JBIDE-16135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vlado Pakan closed JBIDE-16135.
-------------------------------



Verified with JBT 4.2.0.Alpha1-v20131211-0609-B32
                
> EL Content Assist in Java Editor: Make Content Assistant Additional Info window support URLs.
> ---------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-16135
>                 URL: https://issues.jboss.org/browse/JBIDE-16135
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: jsp/jsf/xml/html source editing
>    Affects Versions: 4.1.0.Final
>            Reporter: Victor Rubezhny
>            Assignee: Victor Rubezhny
>            Priority: Minor
>              Labels: new_and_noteworthy
>             Fix For: 4.2.0.Alpha1
>
>         Attachments: el-ca-add-info-javaeditor.png, hover-javaeditor.png, hover-xhtmleditor.png, html.png, javadoc.png
>
>
> EL could be used in String values in Java classes, so the same Additional Info is to be shown for Content Assist in Java Editor as well as in Tooltips (Hovers).
> There are two kinds of links which we should support:
> 1. External HTML links (<a href="http://..."> or <a href="https://...">). Such links are supposed to be opened in the default web browser:
> !html.png|thumbnail!
> *Note:* we don't have such links in our content assist. This screenshot is just an example how it will look like if we add any <a> to a description message.
> 2. Internal links to JavaElement (used in JSF EL). It works in the same way as Eclipse JDT content assist does. Such links are supposed to be opened in SWT web browser (in the same description window):
> !javadoc.png|thumbnail!
> 3. Links and Java-like Additional Info in Java Editor (for ELs in Java Strings):
> !el-ca-add-info-javaeditor.png|thumbnail!
> 4. Same look and functionality for Tooltips (Hovers) in Java and JBossTools Editors:
> !hover-javaeditor.png|thumbnail! !hover-xhtmleditor.png|thumbnail!
> *Steps to test:*
> 1. Make sure JDK sources are available in Eclipse
> 2. Create a JSF 2 KickStart project.
> 3. Open greeting.xhtml
> 4. Type #\{user.name.l and press Ctrl+Space
> 5. Select length
> 6. There should be a description dialog with java element links to length() and CharSequence:
> !javadoc.png|thumbnail!
> EL Content Assist in Java Strings:
> 7. Use the project created at steps 1-2.
> 8. Open User.java.
> 9. Reveal String getName() method and add the following line before the return statement:
> {code}String x = "#{user.}";{code}
> 10. Set the text cursor after 'user.' and press Ctrl-Space
> 11. Select 'name'
> 12. There should be a description dialog with java element links to package 'demo', classes 'String' and 'User', and methods 'getName()' and 'setName()'
> !el-ca-add-info-javaeditor.png|thumbnail!
> Tooltips in Java Editor:
> 13. Apply the 'name' proposal.
> 14. Point the mouse cursor over 'name' in EL and wait for a second.
> 15.  There should be a hover dialog opened with java element links to package 'demo', classes 'String' and 'User', and methods 'getName()' and 'setName()'.
> !hover-javaeditor.png|thumbnail!
> Tooltips in JBoss Editors:
> 16. Open inputname.xhtm
> 17. Reveal '#\{user.name\}' EL in editor.
> 14. Point the mouse cursor over 'name' in EL and wait for a second.
> 15.  There should be a hover dialog opened with java element links to package 'demo', classes 'String' and 'User', and methods 'getName()' and 'setName()'.
> !hover-xhtmleditor.png|thumbnail!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list