[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: How to access the ASTs that Eclipse uses?

Olivier Thomann wrote:

George Ganea a écrit :
My question is, can I skip this step, does the Eclipse IDE have somewere all the ASTs form a given JavaProject, or does every plugin, (e.g. the editor) needs to parse it's own ASTs when it's needs to.
I believe only the current editor has its AST available.
Having all the ASTs in memory simply would not scale.

Ok, thank you very much for your answer, I was hoping I could get those ASTs for free... Oh well, I'll just have to parse the java files for myself...


I was amazed how quickly the SearchEngine (org.eclipse.jdt.core.search) returns the results, that's why I thought that the ASTs should be already there, but then I looked at the source code and noticed it too uses a sort of a parser...

http://kickjava.com/src/org/eclipse/jdt/internal/core/search/BasicSearchEngine.java.htm


Thank you all, George