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

Extend on the fix by Bogdan PR 67656 and

do not get the children for ADDED/REMOVE case

	* model/org/eclipse/cdt/internal/core/model/DeltaProcessor.java
This commit is contained in:
Alain Magloire 2004-06-30 02:26:12 +00:00
parent 8589466f8a
commit 003a4e83fe
2 changed files with 9 additions and 5 deletions

View file

@ -1,3 +1,10 @@
2004-6-29 Alain Magloire
Extend on the fix by Bogdan PR 67656 and
do not get the children for ADDED/REMOVE case
* model/org/eclipse/cdt/internal/core/model/DeltaProcessor.java
2004-06-28 Bogdan Gheorghe
Fix for 67656: [Indexer] getting called twice after creating a project with a file system
* model/org/eclipse/cdt/internal/core/model/DeltaProcessor.java

View file

@ -499,18 +499,15 @@ public class DeltaProcessor {
if (element != null) {
updateIndexAddResource(element, delta);
elementAdded(element, delta);
//If new project has been added, don't need to add the children
//as the indexing job will do that for us
if (element.getElementType() == ICElement.C_PROJECT) return false;
}
return true;
return false;
case IResourceDelta.REMOVED :
if (element != null) {
updateIndexRemoveResource(element, delta);
elementRemoved(element, delta);
}
return true;
return false;
case IResourceDelta.CHANGED :
int flags = delta.getFlags();