Fix EGit history handling code to consider IAdaptables
commite494ea152d0f0663d3004ab5638ff85ac2654671
authorRemy Suen <remysuen@ca.ibm.com>
Fri, 30 Apr 2010 22:30:20 +0000 (30 18:30 -0400)
committerRemy Suen <remysuen@ca.ibm.com>
Fri, 30 Apr 2010 22:30:20 +0000 (30 18:30 -0400)
treea7c3624580d11cedd1eb65746ff06a8895fbc2b7
parentdc9549b6d29825839d1e94da612a414e1423aaa7
Fix EGit history handling code to consider IAdaptables

The history code naively assumes that all of its inputs are of type
IResource. However, this is invalid as objects like an editor's
input or JDT's handling of the model of a Java project are not
represented by an IResource. The history code needs to be corrected
to consider the case where an IAdaptable is handed to it.

Bug: 311249
Change-Id: Ie1e20f68b9023bd98981f42d9b8fa14aae250614
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java