Override getInput in the history page to conform to Eclipse contract
commit33a1d079066cea2d8371a9fbdf7a609f660db058
authorShawn O. Pearce <spearce@spearce.org>
Tue, 25 Mar 2008 02:31:08 +0000 (24 22:31 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 7 Apr 2008 05:06:14 +0000 (7 01:06 -0400)
tree0ac6986bb2605f9bcf3292cb231b61b3c06b08bb
parent09beeaa1d85d3a625204ff3138d26f4a0f0d1d51
Override getInput in the history page to conform to Eclipse contract

We replace the real IResource given to us with our own ResourceList,
allowing the history page to show multiple resources at once within
the same graph.  This works great until some part of Eclipse calls
our view and tries to get the current IResource input, to see if it
needs to create a new view or can reuse the existing one.  We now
unpack our ResourceList and return the single IResource within it
if there is only one IResource in the list.  This should make us
better conform to the IHistoryPage API.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/history/GitHistoryPage.java