Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Need help connecting the dots from IDocument to ASTNode
Need help connecting the dots from IDocument to ASTNode [message #157415] Thu, 06 May 2004 00:33
Eclipse UserFriend
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
Previous Topic:Java Source Attachment
Next Topic:Debugger not working
Goto Forum:
  


Current Time: Wed May 07 21:56:41 EDT 2025

Powered by FUDForum. Page generated in 0.22673 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top