Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » is there any possibilities to change the indexer preference page - programmatically(I want to update index unused headers option in indexer preference page - Programmatically)
is there any possibilities to change the indexer preference page - programmatically [message #1859209] Fri, 19 May 2023 11:13 Go to next message
saravanakumar Mohanasundaram is currently offline saravanakumar MohanasundaramFriend
Messages: 19
Registered: February 2017
Junior Member
I want to update index unused headers option in indexer preference page - Programmatically in eclipse rcp. Any help is appreciated. Thanks in advance!

[Updated on: Fri, 19 May 2023 11:23]

Report message to a moderator

Re: is there any possibilities to change the indexer preference page - programmatically [message #1859578 is a reply to message #1859209] Fri, 16 June 2023 12:27 Go to previous message
Kabiru Usman is currently offline Kabiru UsmanFriend
Messages: 42
Registered: April 2023
Member
You can programmatically alter indexer preferences by accessing the preference store using `org.eclipse.core.runtime.preferences.InstanceScope`. Use the `getNode()` method with the argument as `"org.eclipse.cdt.core"`, which is the plugin ID for CDT Core. To change the unused headers indexing, set the `"indexerUnusedHeadersWithDefaultLang"` preference to `true` or `false` using the `putBoolean()` method. Remember to invoke `flush()` on the preference store to save changes.
Previous Topic:compiler error
Next Topic:pragma vs dynamic cast
Goto Forum:
  


Current Time: Mon Jan 20 03:48:55 GMT 2025

Powered by FUDForum. Page generated in 0.02893 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top