1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

2005-08-27 Alain Magloire

Fix PR 108205: limit the number of refresh by ignoring WorkingCopies events.
	* src/org/eclipse/cdt/ui/CElementContentProvider.java
This commit is contained in:
Alain Magloire 2005-08-27 22:46:56 +00:00
parent 4604a2056f
commit a43ab33c8c
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2005-08-27 Alain Magloire
Fix PR 108205: limit the number of refresh by ignoring WorkingCopies events.
* src/org/eclipse/cdt/ui/CElementContentProvider.java
2005-08-20 Alain Magloire
Fix PR 105613: Preview label duplicated
* src/org/eclipse/cdt/internal/ui/preferences/CTemplatePreferencePage.java

View file

@ -163,6 +163,14 @@ public class CElementContentProvider extends BaseCElementContentProvider impleme
postRefresh(element);
}
// We do not care about changes in Working copies
if (element instanceof ITranslationUnit) {
ITranslationUnit unit = (ITranslationUnit) element;
if (unit.isWorkingCopy()) {
return;
}
}
if (kind == ICElementDelta.REMOVED) {
Object parent = internalGetParent(element);
postRemove(element);