Fix RepositoryFinder to work with linked folders
commitefbfafde119eaa2ddd5156e19b1b73485c0f4fa6
authorSkirmantas Kligys <skligys@google.com>
Thu, 15 Oct 2009 01:35:03 +0000 (14 18:35 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 1 Dec 2009 02:03:46 +0000 (30 18:03 -0800)
treeb04bc0c154ccdc2236dd5cd9f4600bc108fda940
parentcb9adcf59464fc49a555516039435c45eb6ccb60
Fix RepositoryFinder to work with linked folders

When displaying the path to a repository contained within a linked
folder, use the path of the linked folder within the project as
the prefix of the repository location as the repository location
string is relative to that folder.

When a tree node is selected without a project, use the parent tree
node to acquire the project.

Change-Id: If7214ca8bf10439e7e27b424864742a10dd8b766
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.egit.core/src/org/eclipse/egit/core/project/RepositoryFinder.java
org.eclipse.egit.core/src/org/eclipse/egit/core/project/RepositoryMapping.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/sharing/ExistingOrNewPage.java