Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[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   

 

From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Brunauer, Walter
Sent: Tuesday, March 20, 2012 2:18 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] stopping Eclipse C++ project indexing programmatically

 

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

 

From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Yevgeny Shifrin
Sent: Dienstag, 20. März 2012 12:44
To: CDT General developers list. (cdt-dev@xxxxxxxxxxx)
Subject: [cdt-dev] stopping Eclipse C++ project indexing programmatically

 

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.


Back to the top