Check RepositoryCache for selection path
commit0bc081fb7ae334e690123208b2e758dca839d656
authorAndrey Loskutov <loskutov@gmx.de>
Sat, 14 Nov 2015 15:39:12 +0000 (14 16:39 +0100)
committerAndrey Loskutov <loskutov@gmx.de>
Sat, 14 Nov 2015 15:39:12 +0000 (14 16:39 +0100)
tree217debd12846af979846ba4225471d8d7a27b64c
parent9517bf70c83c254de653caf75b8b6453a0fd5d45
Check RepositoryCache for selection path

SelectionUtils should check if the selected IPath object belongs to
repositories known by RepositoryCache. Doing so we allow
CompareWithIndexActionHandler to find the repository for selected
StagingEntry in the StagingView and to open the compare editor even if
this selected object is outside of the Eclipse workspace.

Bug: 481682
Change-Id: Ide018807b001294c80e8a4f3064de318c37e98bb
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/selection/SelectionUtils.java