/*
* Copyright (c) 2012 Eike Stepper (Berlin, Germany) and others.
* 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
*
* Contributors:
* Eike Stepper - initial API and implementation
*/
package org.eclipse.emf.cdo.ui.internal.team.history;
import org.eclipse.team.ui.history.HistoryPageSource;
import org.eclipse.team.ui.history.IHistoryPageSource;
import org.eclipse.ui.part.Page;
/**
* @author Eike Stepper
*/
public final class CDOHistoryPageSource extends HistoryPageSource
{
public static final IHistoryPageSource INSTANCE = new CDOHistoryPageSource();
private CDOHistoryPageSource()
{
}
public boolean canShowHistoryFor(Object object)
{
return CDOHistoryPage.canShowHistoryFor(object);
}
public Page createPage(Object object)
{
// Don't set the input, the framework does this for us
return new CDOHistoryPage();
}
}