Checks added to avoid a lot of entries in the log
commitf3a6ac20061753c8523e7ec6c189601155e82afd
authorRobert Michart <robert_no.spam_m@yahoo.fr>
Thu, 28 Aug 2008 06:53:42 +0000 (28 08:53 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Thu, 28 Aug 2008 22:02:38 +0000 (29 00:02 +0200)
treed8bc4ccbd6f1ec0a429fe7086a5847748dc2f909
parentf1d0f928f38ae1b818b93082e78e86ea707b9670
Checks added to avoid a lot of entries in the log

IResource.isAccessible() must be checked before calling setProperty on it.
Happend When opening a java project shared with CVS (or synchronizing the same project),
egit throws exception for files he tries to decorate wrongly.

GitResourceDecorator.getActiveDecorator() was returning null when opening a
java project shared with CVS (or synchronizing the same project)

[Edited description and use isAccessible instead of exists to test for applicability.
The latter is a partial revert of 4a230ea1]

Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitResourceDecorator.java