[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Re: rich text in content assist additional info

Xavier Décoret wrote:

Hi,

I am trying to display rich text in additional info of a CompletionProposal, but this does not work:

result.add(new CompletionProposal(candidate,o,offset-o,candidate.length(),
null,
candidate,
null,
"Additional <em>info</em> with <b>tags</b>"));



Does anyone know how to do this?

Either your proposal or your content assistant must use an information control creator that can handle those tags. As a reference take a look at
JavaSourceViewerConfiguration.getInformationControlCreator(ISourceViewer)
JavaSourceViewerConfiguration.getContentAssistant(ISourceViewer)


Dani