From: Shawn O. Pearce Date: Fri, 29 Aug 2008 00:08:26 GMT Subject: [EGIT PATCH] Change GitResourceDecorator to use isAccessible Message-ID: <1219968506-30437-1-git-send-email-spearce@spearce.org> f3a6ac20 says it switched to use isAccessible() here but it changed to exists(). We can only use setSessionProperty if the resource is accessible so we must use the correct test here in order to fix the issue reported by Robert. Signed-off-by: Shawn O. Pearce --- I just pushed this out to master since you clearly meant for this to be the case. :-| .../internal/decorators/GitResourceDecorator.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitResourceDecorator.java b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitResourceDecorator.java index 7c10ec6..1055fcc 100644 --- a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitResourceDecorator.java +++ b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitResourceDecorator.java @@ -199,7 +199,7 @@ synchronized (resources) { } // End ResCL void clearDecorationState(IResource r) throws CoreException { - if (r.exists()) { + if (r.isAccessible()) { r.setSessionProperty(GITFOLDERDIRTYSTATEPROPERTY, null); fireLabelProviderChanged(new LabelProviderChangedEvent(this, r)); } -- 1.6.0.174.gd789c