Allow project decorations regardless of repository root location
commit6b5558e9249ba0c11bcbbfe7922fa976c91a4be8
authorTor Arne Vestbø <torarnv@gmail.com>
Tue, 17 Feb 2009 17:52:42 +0000 (17 18:52 +0100)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Wed, 18 Feb 2009 21:22:38 +0000 (18 22:22 +0100)
tree4dc6f549c7adf1f4d2d115c221b2e24470052e46
parenta7a354ed0ac06de40e6b196179e9a7427716df33
Allow project decorations regardless of repository root location

If the repository root is more than one level above the project
directory we use the AdaptableFileTreeIterator to recurse the
repository tree until we find a directory that can be mapped
to a container in the workspace. The iterator is then adapted to
a ContainerTreeIterator and decorations are applied like usual.

Signed-off-by: Tor Arne Vestbø <torarnv@gmail.com>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/DecoratableResourceAdapter.java