Force documentation string to be interpreted as javadoc
I've overriden generateDoc & getDocumentationElementForLookupItem in my custom AbstractDocumentationProvider
I am showing documentation for yaml keys. But I need the documentation to be interpreted as Java doc such that user can navigate to the right java class form the quick documentaion window.
However, the quick window is interpretting javadoc {@link Class} as plain text instead of javadoc.
Is there a to force intellij to interpret the suggestion as javadoc instead?
Please sign in to leave a comment.
You can create links in documentation you provide by using a special URL type. See DocumentationManagerProtocol, DocumentationManagerUtil and DocumentationProvider#getDocumentationElementForLink.
Thanks.. That solved the issue.
I'm using this to build links instead of javadoc version
There seems to be issues with the approach I followed.
Though java navigation works fine for Simple types, it has problems with the following scenarios
1. if type refers to an inner class, navigation is not working
type = "a.MyClass$Inner"2. If the type mentioned is have generic arguments, i,.e
type = "a.MyClass<CustomEntity>"The documentation window only shows this as a.MyClass
Would appreciate if there are any workaround w.r.t these two corner cases. Thanks