Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] How to know if the indexer is setup for a project?

Hi,
there is no API for directly accessing this information. As a workaround you can test the index returned by the
index manager:  index.getAllFiles().length == 0 ? or index.getLastWriteAccess() == 0 ?
Markus.
 

From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Pavan V Ananth
Sent: Freitag, 22. Oktober 2010 13:37
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] How to know if the indexer is setup for a project?
Importance: Low

The indexer setup for a project does not run until the workbench load completes. Prior to the completion of the workbench load, if I wish to know the state of the indexer, is there an API that would correctly tell me that the indexer setup hasn't run yet/or the project index is not ready yet?

The API isIndexerSetupPostponed(ICProject proj) returns false and the call getIndex(ICProject project) on the IndexManager returns a non-null value.

thanks,
Pavan

Back to the top