Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2002-03-21 11:48:17 -0500
committerJean Michel-Lemieux2002-03-21 11:48:17 -0500
commit7490d6d23099e41f0e4b82a717a95cd63d4c76c9 (patch)
tree91fff535df403ecca26bd0208458ebdcf43d7af4
parentdaeddd6bade3e6bd9a5e081029a2d2aeb4b5ba29 (diff)
downloadeclipse.platform.team-7490d6d23099e41f0e4b82a717a95cd63d4c76c9.tar.gz
eclipse.platform.team-7490d6d23099e41f0e4b82a717a95cd63d4c76c9.tar.xz
eclipse.platform.team-7490d6d23099e41f0e4b82a717a95cd63d4c76c9.zip
Bug 12022: Decorator cache not being cleared on file delete?
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecorator.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecorator.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecorator.java
index 43c1f810a..cfed4e31c 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecorator.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecorator.java
@@ -71,8 +71,16 @@ public class CVSDecorator extends LabelProvider implements ILabelDecorator, IRes
List changedResources = new ArrayList();
protected void handleAdded(IResource[] resources) {
}
+ // remove the cached decoration for any removed resource
protected void handleRemoved(IResource[] resources) {
+ for (int i = 0; i < resources.length; i++) {
+ IResource resource = resources[i];
+ if(RepositoryProvider.getProvider(resource.getProject(), CVSProviderPlugin.getTypeId())!=null) {
+ cache.remove(resources[i]);
+ }
+ }
}
+ // for changed resources we have to update the decoration
protected void handleChanged(IResource[] resources) {
changedResources.addAll(Arrays.asList(resources));
}

Back to the top