Skip to main content
summaryrefslogtreecommitdiffstats
blob: faad3201d5751722b0f75245b7851a74be5d85cf (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*******************************************************************************
 * Copyright (c) 2006, 2011 IBM Corporation 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:
 * IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.team.internal.ui.history;

import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.jface.viewers.ISelectionProvider;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.team.ui.history.IHistoryPageSite;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.part.IPageSite;

public class WorkbenchHistoryPageSite implements IHistoryPageSite {

	GenericHistoryView part;
	IPageSite site;

	public WorkbenchHistoryPageSite(GenericHistoryView part, IPageSite site) {
		this.part = part;
		this.site = site;
	}

	public IPageSite getWorkbenchPageSite() {
		return site;
	}

	public IWorkbenchPart getPart() {
		return part;
	}

	public Shell getShell() {
		return site.getShell();
	}

	public ISelectionProvider getSelectionProvider() {
		return site.getSelectionProvider();
	}

	public void setSelectionProvider(ISelectionProvider provider) {
		site.setSelectionProvider(provider);
	}

	public void setFocus() {
//		 Nothing to do
	}

	public boolean isModal() {
		return false;
	}

	public IToolBarManager getToolBarManager() {
		return site.getActionBars().getToolBarManager();
	}

}

Back to the top