1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix for 202683: [ scalability ] PDOM manager is very aggressive with Job usage.

This commit is contained in:
Anton Leherbauer 2007-09-17 12:34:03 +00:00
parent 89f9f4d8d3
commit 02e0e771fe

View file

@ -654,10 +654,10 @@ public class PDOMManager implements IWritableIndexManager, IListener {
// have to check for that.
ISchedulingRule rule= project.getWorkspace().getRuleFactory().refreshRule(project.getFolder(SETTINGS_FOLDER_NAME));
if (project.contains(rule)) {
rule= project;
rule= new MultiRule(new ISchedulingRule[] {project, INDEXER_SCHEDULING_RULE });
}
else if (!rule.contains(project)) {
rule= new MultiRule(new ISchedulingRule[] {rule, project});
rule= new MultiRule(new ISchedulingRule[] {rule, project, INDEXER_SCHEDULING_RULE });
}
addProject.setRule(rule);
addProject.setSystem(true);