[
https://issues.jboss.org/browse/JBIDE-16135?page=com.atlassian.jira.plugi...
]
Victor Rubezhny updated JBIDE-16135:
------------------------------------
Attachment: hover-xhtmleditor.png
hover-javaeditor.png
el-ca-add-info-javaeditor.png
EL Content Assist in Java Editor: Make Content Assistant Additional
Info window to 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.x
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|tumbnail!
4. Same look and functionality for Tooltips (Hovers) in Java and JBossTools Editors:
!hover-javaeditor.png|tumbnail! !hover-xhtml-editor.png|tumbnail!
*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 javalement links to length() and
CharSequence:
!javadoc.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