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,21 +161,23 @@ public class CElementContentProvider extends BaseCElementContentProvider impleme
|
|||
|
||||
// this could be optimized by handling all the added children in the parent
|
||||
if ((status & IResourceDelta.REMOVED) != 0) {
|
||||
if (!(parent instanceof ICContainer)) {
|
||||
// refresh one level above to deal with empty package filtering properly
|
||||
postRefresh(internalGetParent(parent));
|
||||
} else {
|
||||
// if (!(parent instanceof ICContainer)) {
|
||||
// // refresh one level above to deal with empty package filtering properly
|
||||
// postRefresh(internalGetParent(parent));
|
||||
// } else {
|
||||
// postRemove(resource);
|
||||
// }
|
||||
postRemove(resource);
|
||||
}
|
||||
}
|
||||
if ((status & IResourceDelta.ADDED) != 0) {
|
||||
if (!(parent instanceof ICContainer)) {
|
||||
// refresh one level above to deal with empty package filtering properly
|
||||
postRefresh(internalGetParent(parent));
|
||||
} else {
|
||||
// if (!(parent instanceof ICContainer)) {
|
||||
// // refresh one level above to deal with empty package filtering properly
|
||||
// postRefresh(internalGetParent(parent));
|
||||
// } else {
|
||||
// postAdd(parent, resource);
|
||||
// }
|
||||
postAdd(parent, resource);
|
||||
}
|
||||
}
|
||||
IResourceDelta[] affectedChildren= delta.getAffectedChildren();
|
||||
|
||||
if (affectedChildren.length > 1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue