mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
get rid of duplicate refreshings.
This commit is contained in:
parent
793c52d03b
commit
b3f73d737d
1 changed files with 14 additions and 12 deletions
|
@ -161,20 +161,22 @@ public class CElementContentProvider extends BaseCElementContentProvider impleme
|
||||||
|
|
||||||
// this could be optimized by handling all the added children in the parent
|
// this could be optimized by handling all the added children in the parent
|
||||||
if ((status & IResourceDelta.REMOVED) != 0) {
|
if ((status & IResourceDelta.REMOVED) != 0) {
|
||||||
if (!(parent instanceof ICContainer)) {
|
// if (!(parent instanceof ICContainer)) {
|
||||||
// refresh one level above to deal with empty package filtering properly
|
// // refresh one level above to deal with empty package filtering properly
|
||||||
postRefresh(internalGetParent(parent));
|
// postRefresh(internalGetParent(parent));
|
||||||
} else {
|
// } else {
|
||||||
postRemove(resource);
|
// postRemove(resource);
|
||||||
}
|
// }
|
||||||
|
postRemove(resource);
|
||||||
}
|
}
|
||||||
if ((status & IResourceDelta.ADDED) != 0) {
|
if ((status & IResourceDelta.ADDED) != 0) {
|
||||||
if (!(parent instanceof ICContainer)) {
|
// if (!(parent instanceof ICContainer)) {
|
||||||
// refresh one level above to deal with empty package filtering properly
|
// // refresh one level above to deal with empty package filtering properly
|
||||||
postRefresh(internalGetParent(parent));
|
// postRefresh(internalGetParent(parent));
|
||||||
} else {
|
// } else {
|
||||||
postAdd(parent, resource);
|
// postAdd(parent, resource);
|
||||||
}
|
// }
|
||||||
|
postAdd(parent, resource);
|
||||||
}
|
}
|
||||||
IResourceDelta[] affectedChildren= delta.getAffectedChildren();
|
IResourceDelta[] affectedChildren= delta.getAffectedChildren();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue