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:
parent
4604a2056f
commit
a43ab33c8c
2 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue