blob: 8b8504ca7228ff5a4679f91b0f4ceb3499ef179c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/*******************************************************************************
* Copyright (C) 2007, Robin Rosenberg <robin.rosenberg@dewire.com>
* Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org>
* Copyright (C) 2010, Mathias Kinzler <mathias.kinzler@sap.com>
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
package org.eclipse.egit.ui.internal.history;
import org.eclipse.team.ui.history.HistoryPageSource;
import org.eclipse.ui.part.Page;
/**
* A helper class for constructing the {@link GitHistoryPage}.
*/
public class GitHistoryPageSource extends HistoryPageSource {
public boolean canShowHistoryFor(final Object object) {
return GitHistoryPage.canShowHistoryFor(object);
}
public Page createPage(final Object object) {
// don't set the input, the framework does this for us
return new GitHistoryPage();
}
}
|