Javadocs in Plugin development
I am a novice plugin developer. I want to infer the Javadoc comments for a method invocation in my active editor (Something similar to the tootip text you see in the eclipse editor).
I have parsed the code in the active editor using Eclipse's ASTParser. I have also collected the relevant method invocation in the MethodInvocation node of the AST created by parser. How can I infer the Javadoc comments for the same node?
A bit of exploring of the API suggests that the Javadoc comment can be obtained from the MethodDeclaration instance for the exact same method. Does anyone know how to obtain MethodDeclaration from MethodInvocation? Is there any other way of finding Javadoc from MethodInvocation?