Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Adding language settings providers to built-in project types

If you use addCProjectDescriptionListener and listen to events like CProjectDescriptionEvent#LOADED, you might get read-only project description so you’ll need a writable description to actually make changes to the project and then you can change the providers. I did something like that in 
  CompilationDatabaseParser.scheduleOnWritableCfgDescription
Although in this case it also needed to exclude files in the same execution as adding language setting entries.

Marc-André

> On Feb 21, 2020, at 10:06 AM, Christian Walther <walther@xxxxxxxx> wrote:
> 
> Mega Masha wrote:
> 
>> is there a clean way to have the above code called once project creation is complete?
> 
> I don't know if it comes at the right time for your purpose, but you can react to the C project being opened using CoreModel.addCProjectDescriptionListener().
> 
> -Christian
> 
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/cdt-dev



Back to the top