[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?


Thank you both,
Up until now I've designed my plugin to work just like in the article (I've actually used that exact same article as a startup point).


But if I want, for example, to collect all the local variables of a given type (the AST nodes that represent those local variables to be more exact) from a java project, i'd have to parse all the source files and then visit the ASTs... - I'd like to skip the parsing phase and do only the visiting.

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'm using Eclipse 3.3 and I haven't tried org.eclipse.jdt.ui.SharedASTProvider yet, I'll download 3.4 tomorrow :)


thanks again,
George