final IIndexManager im = CCorePlugin.getIndexManager();
while
(true)
{
if
(CCoreInternals.getPDOMManager().isProjectRegistered(cProject))
{
im.joinIndexer(Integer.MAX_VALUE, new
NullProgressMonitor());
if
(!im.isIndexerSetupPostponed(cProject))
{
break;
}
}
Thread.sleep(1000);
}
原文:http://www.cnblogs.com/dingnate/p/3620908.html