Skip to main content



      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 07:13 Go to next message
Eclipse UserFriend
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 07:23] by 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 08:27 Go to previous message
Eclipse UserFriend
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: Sun Apr 27 10:59:46 EDT 2025

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

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

Back to the top