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

recreate the project after calling releaseCelement

This commit is contained in:
Alain Magloire 2003-10-19 02:52:31 +00:00
parent f5b89e809f
commit b1b47c294e

View file

@ -356,7 +356,11 @@ public class CModelManager implements IResourceChangeListener {
if (project != null) { if (project != null) {
ICElement celement = create(project); ICElement celement = create(project);
if (celement != null) { if (celement != null) {
// Let the function remove the children
// but it has the side of effect of removing the CProject also
// so we have to recall create again.
releaseCElement(celement); releaseCElement(celement);
celement = create(project);
// Fired and ICElementDelta.PARSER_CHANGED // Fired and ICElementDelta.PARSER_CHANGED
CElementDelta delta = new CElementDelta(getCModel()); CElementDelta delta = new CElementDelta(getCModel());
delta.binaryParserChanged(celement); delta.binaryParserChanged(celement);