Don't crash the decorator update loop when resources are deleted
commit4a230ea18a898edc36406b26fa442eaf343c3fa6
authorShawn O. Pearce <spearce@spearce.org>
Sun, 10 Aug 2008 06:39:43 +0000 (9 23:39 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 10 Aug 2008 06:44:47 +0000 (9 23:44 -0700)
treed5dffc65961a8f1bb92c023e59f11b5e2969b687
parent05c68d62c7091eb38d8dc69f04b17ea9f05d2819
Don't crash the decorator update loop when resources are deleted

If a resource is deleted from the workspace we don't need to clear
its GITFOLDERDIRTYSTATEPROPERTY from the item because it is gone.
There won't be anyone else to query for that flag, so the flag is
not relevant anymore.  Further trying to call accept() on those
resources throws an exception because Eclipse won't let you touch
a deleted resource.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/GitResourceDecorator.java