KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > ccvs > ui > CVSHistoryPageSource


1 /*******************************************************************************
2  * Copyright (c) 2006, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.team.internal.ccvs.ui;
13
14 import org.eclipse.team.ui.history.HistoryPageSource;
15 import org.eclipse.ui.part.Page;
16
17 public class CVSHistoryPageSource extends HistoryPageSource {
18
19     public Page createPage(Object JavaDoc object) {
20         CVSHistoryPage page = new CVSHistoryPage(object);
21         return page;
22     }
23
24     public boolean canShowHistoryFor(Object JavaDoc object) {
25         return CVSHistoryPage.getCVSFile(object) != null;
26     }
27
28 }
29
Popular Tags