Allow project decorations regardless of repository root locationcustomizable-decorations
commit684809151325566fb4d2c08af6e257fc78bf668e
authorTor Arne Vestbø <torarnv@gmail.com>
Tue, 17 Feb 2009 17:45:21 +0000 (17 18:45 +0100)
committerTor Arne Vestbø <torarnv@gmail.com>
Tue, 17 Feb 2009 17:45:21 +0000 (17 18:45 +0100)
treeac0be6500997c0764d9738d0be3e87bc6456e3ad
parent6f619c9c95d2ee1acb64823278e6dd5a0a9d11d5
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>
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/decorators/DecoratableResourceAdapter.java