IndexManager manager = JavaModelManager.getIndexManager();
// TODO (frederic) should not have to create index manually, should expose API that recreates index instead
manager.ensureIndexExists(indexLocation, containerPath);
manager.scheduleDocumentIndexing(document, containerPath, indexLocation, this);
if (!indexLocation.equals(this.lastIndexLocation)) {
manager.updateParticipant(indexLocation, containerPath);
this.lastIndexLocation = indexLocation;
}
}
/**