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);
|
elementRemoved(element, delta);
|
||||||
CModelInfo rootInfo = (CModelInfo)CModelManager.getDefault().getCModel().getElementInfo();
|
CModelInfo rootInfo = (CModelInfo)CModelManager.getDefault().getCModel().getElementInfo();
|
||||||
rootInfo.setNonCResources(null);
|
rootInfo.setNonCResources(null);
|
||||||
}
|
} else {
|
||||||
fCurrentDelta.closed(element);
|
fCurrentDelta.closed(element);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Processing for the opening of an element - there are two cases:<ul>
|
* 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) {
|
if (element.getElementType() == ICElement.C_PROJECT) {
|
||||||
// treat project opening as addition
|
// treat project opening as addition
|
||||||
|
if (hasCNature(delta.getResource())) {
|
||||||
|
elementAdded(element, delta);
|
||||||
|
}
|
||||||
CModelInfo rootInfo = (CModelInfo)CModelManager.getDefault().getCModel().getElementInfo();
|
CModelInfo rootInfo = (CModelInfo)CModelManager.getDefault().getCModel().getElementInfo();
|
||||||
rootInfo.setNonCResources(null);
|
rootInfo.setNonCResources(null);
|
||||||
fCurrentDelta.added(element);
|
|
||||||
}
|
} else {
|
||||||
fCurrentDelta.opened(element);
|
fCurrentDelta.opened(element);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Closes the given element, which removes it from the cache of open elements.
|
* Closes the given element, which removes it from the cache of open elements.
|
||||||
|
|
Loading…
Add table
Reference in a new issue