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:
parent
8589466f8a
commit
003a4e83fe
2 changed files with 9 additions and 5 deletions
|
@ -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
|
2004-06-28 Bogdan Gheorghe
|
||||||
Fix for 67656: [Indexer] getting called twice after creating a project with a file system
|
Fix for 67656: [Indexer] getting called twice after creating a project with a file system
|
||||||
* model/org/eclipse/cdt/internal/core/model/DeltaProcessor.java
|
* model/org/eclipse/cdt/internal/core/model/DeltaProcessor.java
|
||||||
|
|
|
@ -499,18 +499,15 @@ public class DeltaProcessor {
|
||||||
if (element != null) {
|
if (element != null) {
|
||||||
updateIndexAddResource(element, delta);
|
updateIndexAddResource(element, delta);
|
||||||
elementAdded(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 :
|
case IResourceDelta.REMOVED :
|
||||||
if (element != null) {
|
if (element != null) {
|
||||||
updateIndexRemoveResource(element, delta);
|
updateIndexRemoveResource(element, delta);
|
||||||
elementRemoved(element, delta);
|
elementRemoved(element, delta);
|
||||||
}
|
}
|
||||||
return true;
|
return false;
|
||||||
|
|
||||||
case IResourceDelta.CHANGED :
|
case IResourceDelta.CHANGED :
|
||||||
int flags = delta.getFlags();
|
int flags = delta.getFlags();
|
||||||
|
|
Loading…
Add table
Reference in a new issue