mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 06:32:10 +02:00
Fix for 188684 by Warren Paul, NPE setting default indexer.
This commit is contained in:
parent
f03ccfbc3a
commit
42ad2a4705
2 changed files with 5 additions and 1 deletions
|
@ -362,7 +362,7 @@ public class PDOMManager implements IWritableIndexManager, IListener {
|
|||
}
|
||||
|
||||
public void setDefaultIndexerId(String indexerId) {
|
||||
setIndexerId(null, indexerId);
|
||||
IndexerPreferences.setDefaultIndexerId(indexerId);
|
||||
}
|
||||
|
||||
public String getIndexerId(ICProject project) {
|
||||
|
|
|
@ -318,6 +318,10 @@ public class IndexerPreferences {
|
|||
prefs.put(KEY_FILES_TO_PARSE_UP_FRONT, DEFAULT_FILES_TO_PARSE_UP_FRONT);
|
||||
}
|
||||
|
||||
public static void setDefaultIndexerId(String defaultId) {
|
||||
getDefaultPreferences().put(KEY_INDEXER_ID, defaultId);
|
||||
}
|
||||
|
||||
public static void addChangeListener(IProject prj, IPreferenceChangeListener pcl) {
|
||||
Preferences node= getProjectPreferences(prj);
|
||||
addListener(node, pcl);
|
||||
|
|
Loading…
Add table
Reference in a new issue