* Blocks until all builders have completed their work. If an
* {@link InterruptedException} occurs while waiting for completion, the
* exception is silently caught and blocking is resumed.
*/
public void waitForBuild() {
IJobManager jobManager = Job.getJobManager();
// we need to ensure that the build has completed:
// for some strange reason join-thread gets interrupted
// once in a while (at least on windows).
boolean buildHasntFinishedYet = true;
while(buildHasntFinishedYet) {
try {
jobManager.join(ResourcesPlugin.FAMILY_AUTO_BUILD, null);
jobManager.join(ResourcesPlugin.FAMILY_MANUAL_BUILD, null);
buildHasntFinishedYet = false;
} catch (InterruptedException e) {
buildHasntFinishedYet = true; //
}