|ContentAssist with AdditionalInfo in HTML format [message #510042]
||Tue, 26 January 2010 10:31
| Xavier Coulon
Registered: July 2009
I'm working on a plugin for the WTP HTML editor. For now, this plugin provides just extra elements based on the Apache Tapestry web framework.
For each proposal, I want to display additional info based on the javadoc of the web framework components (if available).
Up to now, I've managed to generate the proposals and I can retrieve the javadoc in plain text or HTML format, using
JavadocContentAccess.getHTMLContentReader(component, true, true);
Yet, the javadoc is not displayed as an HTML content, so all paragraphs (<p> tags) and links are lost, and the additional info is not very readable.
Actually, the CompletionProposal constructor only takes a String as a parameter for additionalInfo attribute, I haven't seen any switch to activate some HTML rendering.
Also, I've read on another thread that the JDT additional info uses the SWT Browser underneath to render the javadoc in HTML.
Does this feature exist in the context of WTP HTML editor ?
Thank you in advance
Powered by FUDForum
. Page generated in 0.04565 seconds