[historyView] Enable to run commands when input is in a closed project
commit3531bb58dde7c65069c3103073ef219f67a00e5d
authorMatthias Sohn <matthias.sohn@sap.com>
Wed, 27 Nov 2013 21:42:49 +0000 (27 22:42 +0100)
committerRobin Stocker <robin@nibor.org>
Fri, 29 Nov 2013 15:14:03 +0000 (29 16:14 +0100)
treef6fa527baf1f6af1ad2d3426572583bf03bcf8c3
parent88b7aae8bd42cc909ce14008fdb01dc16ea6c22d
[historyView] Enable to run commands when input is in a closed project

The team framework doesn't allow to lookup the RepositoryMapping for
resources located in a closed project. Hence we need to handle this
using path comparisons of working tree path of all known repositories
with the input's resource path.

Bug: 422716
Change-Id: I1d6e089cafbf5757877e149c0488f5ff12e99a2e
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/command/AbstractHistoryCommandHandler.java