Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Shared ASTs for CompilationParticipants
Shared ASTs for CompilationParticipants [message #675243] Mon, 30 May 2011 17:30 Go to next message
Ovidio Mallo is currently offline Ovidio Mallo
Messages: 35
Registered: July 2009
Member
Hi all,

I'm implementing custom Compiler Warnings/Errors similar to those
available from JDT under "Window => Preferences => Java => Compiler =>
Errors/Warnings". The implementation is done using a
CompilationParticipant and right now, I'm creating my own ASTs for the
files being compiled which are passed in through the
CompilationUnit#buildStarting() method.

Since creating an AST with resolved bindings is rather expensive, I was
wondering whether there are any shared, read-only ASTs available from
the JDT part to be used in a compilation participant (or elsewhere)?

I've seen that there's a SharedASTProvider which, however, only provides
shared access to the AST of the currently open Java Editor.

Thanks in advance for any help!

Kind regards,
Ovidio
Re: Shared ASTs for CompilationParticipants [message #675352 is a reply to message #675243] Tue, 31 May 2011 04:59 Go to previous message
Satyam Kandula is currently offline Satyam Kandula
Messages: 444
Registered: July 2009
Senior Member
No, there is nothing apart from the SharedASTProvider from JDT.
Previous Topic:C++ DLL not working on Eclipse JDT.
Next Topic:Eclipse fails at startup error code=13
Goto Forum:
  


Current Time: Wed Aug 20 22:27:13 EDT 2014

Powered by FUDForum. Page generated in 0.01711 seconds