Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] How to restart the language provider scanner?

Hi Jan,
It is a bit more complicated than that. If you change project settings
in UI and rerun provider before saving the settings you are getting in
inconsistent state. Suppose the user cancels project settings changes.
You get old settings and provider results corresponding to
non-existent project state.

So, in current UI to rerun provider you would [Clear Entries] and use
[Apply] or [OK] button. [Clear Entries] will create a temporary copy
of the provider which has not been executed yet. [OK] button will save
the project settings and trigger reruns of not-executed providers. You
can inspect stack trace if you set breakpoint in
AbstractBuiltinSpecsDetector.execute() method.


On Tue, Mar 5, 2013 at 6:12 PM, Jan Baeyens <jan@xxxxxxxxxx> wrote:
> Hi
> In my eclipse plugin I have project settings that when I change them The
> language provider needs to be rerun because I'm using another compiler.
> I found a way in the gui to rerun the language provider (project
> properties->C/C++ General->Code Analysis->Preprocessor Include Paths, Maros
> etc Select providers tab; select the provider;Select reset; select OK
> Sometimes the reset is not enabled in which case you can change the command
> as work around.
> Eclipse spy tells me the button is on LanguageSettingProviderPage but I
> failed to find the code.
> My question is: What is the API code to force the language provider to
> rerun?
> Best regards
> Jantje
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx

Back to the top