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:
parent
60311183ca
commit
f3558acfe4
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue