mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +02:00
Refresh the non-resources when ISourceRoot is deleted.
This commit is contained in:
parent
483bcb5df2
commit
db503355f9
1 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,7 @@ import org.eclipse.cdt.core.model.IBinaryContainer;
|
|||
import org.eclipse.cdt.core.model.ICElement;
|
||||
import org.eclipse.cdt.core.model.ICElementDelta;
|
||||
import org.eclipse.cdt.core.model.ICProject;
|
||||
import org.eclipse.cdt.core.model.ISourceRoot;
|
||||
import org.eclipse.cdt.internal.core.search.indexing.IndexManager;
|
||||
import org.eclipse.core.resources.IFile;
|
||||
import org.eclipse.core.resources.IProject;
|
||||
|
@ -426,7 +427,8 @@ public class DeltaProcessor {
|
|||
protected void traverseDelta(ICElement parent, IResourceDelta delta) {
|
||||
try {
|
||||
ICElement current = updateCurrentDeltaAndIndex(delta);
|
||||
if (current == null || (current instanceof ICProject && !((ICProject)current).getProject().isOpen())) {
|
||||
if (current == null || current instanceof ISourceRoot ||
|
||||
(current instanceof ICProject && !((ICProject)current).getProject().isOpen())) {
|
||||
nonCResourcesChanged(parent, delta);
|
||||
} else {
|
||||
parent = current;
|
||||
|
|
Loading…
Add table
Reference in a new issue