blob: c1db316e30282998b9dd06a3e4a55b3606a42609 [file] [log] [blame]
package org.eclipse.emf.cdo.ui.internal.team.history;
import org.eclipse.core.runtime.IAdapterFactory;
import org.eclipse.team.ui.history.IHistoryPageSource;
/**
* @author Eike Stepper
*/
@SuppressWarnings("rawtypes")
public class CDOHistoryAdapterFactory implements IAdapterFactory
{
private static final Class[] ADAPTER_TYPES = { IHistoryPageSource.class };
public CDOHistoryAdapterFactory()
{
}
public Class[] getAdapterList()
{
return ADAPTER_TYPES;
}
public Object getAdapter(Object adaptableObject, Class adapterType)
{
if (adapterType == IHistoryPageSource.class)
{
return CDOHistoryPageSource.INSTANCE;
}
return null;
}
}