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:
parent
0ec0d60184
commit
469ac36812
1 changed files with 8 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue