Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Dependent class compilation(Is there a way to detect when dependent classes are compiled?)
Dependent class compilation [message #915798] Tue, 18 September 2012 01:18 Go to next message
Tom Ball is currently offline Tom BallFriend
Messages: 3
Registered: July 2009
Junior Member
Is there a way to detect when dependent classes are compiled? By dependent classes, I mean those classes that weren't specified, but get compiled because the specified classes depend on them.

We're using JDT as the front-end of a translator, and our users want the translator to have the same behavior. I don't know any sort of compiler listener interface, or some other way to be notified that a dependent class is getting compiled. Perhaps ASTParser.createASTs() returns more compilation units than the number of source files? ProgressMonitor hack, perhaps?

Any help would be appreciated,
Re: Dependent class compilation [message #920881 is a reply to message #915798] Sun, 23 September 2012 15:07 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1828
Registered: July 2009
Senior Member
If your tool is an Eclipse plug-in one option could be to register a CompilationParticipant, see:

You could then do your work in #buildStarting()
Previous Topic:Debug Perspective - Variables Detail Pane - "@xxxxxxx" string after type
Next Topic:mixing v3 and v2
Goto Forum:

Current Time: Fri Nov 27 04:26:36 GMT 2020

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

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

Back to the top