1 /*******************************************************************************
2 * Copyright (C) 2007, Robin Rosenberg <robin.rosenberg@dewire.com>
3 * Copyright (C) 2007, Shawn O. Pearce <spearce@spearce.org>
5 * All rights reserved. This program and the accompanying materials
6 * are made available under the terms of the Eclipse Public License v1.0
7 * See LICENSE for the full license text, also available.
8 *******************************************************************************/
9 package org
.spearce
.egit
.ui
.internal
.factories
;
11 import org
.eclipse
.core
.runtime
.IAdapterFactory
;
12 import org
.eclipse
.team
.ui
.history
.IHistoryPageSource
;
13 import org
.spearce
.egit
.ui
.GitHistoryPageSource
;
16 * This class is an intelligent "cast" operation for getting
17 * an instance of a suitable object from another for a specific
20 public class GitAdapterFactory
implements IAdapterFactory
{
22 private Object historyPageSource
= new GitHistoryPageSource();
24 public Object
getAdapter(Object adaptableObject
, Class adapterType
) {
25 if (adapterType
.isAssignableFrom(IHistoryPageSource
.class)) {
26 return historyPageSource
;
31 public Class
[] getAdapterList() {
32 // TODO Auto-generated method stub