Need help connecting the dots from IDocument to ASTNode [message #157415] |
Thu, 06 May 2004 00:33 |
Eclipse User |
|
|
|
Originally posted by: no.ddress.here
Trying to get from a user click on a method in the standard Content
Outline View to the list returned by
org.eclipse.jdt.core.dom.Javadoc.tags() for the clicked on method in the
current IDocument.
Searched several 1000's messages back in the group but could not find
the answer I wanted. Seems I can parse up my own AST tree, but that
would be wasteful, give the jdt is obviously maintaining exactly the
same tree.
Listening on the Content Outline View gives me the current selection,
from which I can get the IJavaProject. That I supposed would correspond
to the root of the AST tree, but could find no method to give the
ASTroot for the current project.
So the first question is, how do I get a reference to the existing AST
root node?
Second question is, is there a convenience method to search the AST for
a particularly named method?
Thanks,
Gerald
|
|
|
Powered by
FUDForum. Page generated in 0.22673 seconds