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

revert alain changes for now

This commit is contained in:
David Inglis 2004-08-26 16:34:31 +00:00
parent 0ec0d60184
commit 469ac36812

View file

@ -265,9 +265,10 @@ public class DeltaProcessor {
elementRemoved(element, delta);
CModelInfo rootInfo = (CModelInfo)CModelManager.getDefault().getCModel().getElementInfo();
rootInfo.setNonCResources(null);
}
} else {
fCurrentDelta.closed(element);
}
}
/**
* Processing for the opening of an element - there are two cases:<ul>
@ -281,12 +282,16 @@ public class DeltaProcessor {
if (element.getElementType() == ICElement.C_PROJECT) {
// treat project opening as addition
if (hasCNature(delta.getResource())) {
elementAdded(element, delta);
}
CModelInfo rootInfo = (CModelInfo)CModelManager.getDefault().getCModel().getElementInfo();
rootInfo.setNonCResources(null);
fCurrentDelta.added(element);
}
} else {
fCurrentDelta.opened(element);
}
}
/*
* Closes the given element, which removes it from the cache of open elements.