1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 10:46:02 +02:00

Bug 258313 - After C++ project creation on top of existing directory, Project Explorer sometimes shows non-empty folders as empty

This commit is contained in:
Anton Leherbauer 2008-12-11 14:35:34 +00:00
parent 60311183ca
commit f3558acfe4

View file

@ -575,7 +575,11 @@ final class DeltaProcessor {
if (element != null) {
elementAdded(element, delta);
// no need to traverse further
// return element instanceof ICContainer;
if (element instanceof ICContainer) {
return ((ICContainer) element).isOpen();
} else if (element instanceof ICProject) {
return ((ICProject) element).isOpen();
}
}
return false;
@ -599,7 +603,7 @@ final class DeltaProcessor {
if (element != null) {
if (project.isOpen()) {
elementOpened(element, delta);
return false;
return element instanceof ICProject && ((ICProject) element).isOpen();
}
elementClosed(element, delta);
//Don't process children