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 21:30 Go to next message
Ovidio Mallo is currently offline Ovidio MalloFriend
Messages: 35
Registered: July 2009
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,
Re: Shared ASTs for CompilationParticipants [message #675352 is a reply to message #675243] Tue, 31 May 2011 08:59 Go to previous message
Satyam Kandula is currently offline Satyam KandulaFriend
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 Apr 25 22:22:50 GMT 2018

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

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