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:
parent
f5b89e809f
commit
b1b47c294e
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue