Hi guys,
Thanks a lot for your comments.
Best regards,
Yevgeny
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Schorn, Markus
Sent: Wednesday, March 21, 2012 9:13 AM
To: CDT General developers list.
Subject: Re: [cdt-dev] stopping Eclipse C++ project indexing programmatically
Hi,
You can do that with Walter’s suggestion. The installer shall postpone the indexer and never let it run. Then, when standard eclipse is used to open the project, the indexer will automatically run (for the first time on the project).
Markus.
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Yevgeny Shifrin
Sent: Tuesday, March 20, 2012 13:33
To: CDT General developers list. (cdt-dev@xxxxxxxxxxx)
Subject: [cdt-dev] FW: stopping Eclipse C++ project indexing programmatically
Hi,
We have a proprietary Eclipse application (installer) which among others creates and configures Eclipse project. As last action it opens standard Eclipse CDT and closes itself (installer). If indexer started to work before installer closed itself, it causes harm to created project. We are trying to make sure that indexer is not running. When standard Eclipse CDT is opened we expect user to perform a full index rebuild. Is it possible to do it?
Thanks,
Yevgeny
Hi,
I guess what you really want is to postpone the whole indexer during project creation, right?
If so, we do exactly this by using the following code:
final IndexerSetupParticipant indexerParticipant = new IndexerSetupParticipant() {
@Override
public boolean postponeIndexerSetup(ICProject cProject) {
return true; // implement your condition as long as project creation and setup is pending
}
};
CCorePlugin.getIndexManager().addIndexerSetupParticipant(indexerParticipant);
// create and setup your project
CCorePlugin.getIndexManager().removeIndexerSetupParticipant(indexerParticipant);
HTH,
Walter
Hi,
We created programmatically Eclipse C++ project. We would like to stop indexer job (if started). Could someone please point us to relevant API (or code) for performing this action?
Thanks a lot,
Yevgeny
This e-mail message is intended for the recipient only and contains information which is CONFIDENTIAL and which may be proprietary to ECI Telecom. If you have received this transmission in error, please inform us by e-mail, phone or fax, and then delete the original and all copies thereof.
This e-mail message is intended for the recipient only and contains information which is CONFIDENTIAL and which may be proprietary to ECI Telecom. If you have received this transmission in error, please inform us by e-mail, phone or fax, and then delete the original and all copies thereof.
This e-mail message is intended for the recipient only and contains information which is CONFIDENTIAL and which may be proprietary to ECI Telecom. If you have received this transmission in error, please inform us by e-mail, phone or fax, and then delete the original and all copies thereof.