KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > ui > history > DialogHistoryPageSite


1 /*******************************************************************************
2  * Copyright (c) 2006 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 package org.eclipse.team.internal.ui.history;
12
13 import org.eclipse.jface.action.IToolBarManager;
14 import org.eclipse.jface.viewers.ISelectionProvider;
15 import org.eclipse.swt.widgets.Shell;
16 import org.eclipse.team.ui.history.IHistoryPageSite;
17 import org.eclipse.ui.IWorkbenchPart;
18 import org.eclipse.ui.part.IPageSite;
19
20 public class DialogHistoryPageSite implements IHistoryPageSite {
21
22     private ISelectionProvider selectionProvider;
23     private final Shell shell;
24     private IToolBarManager toolBarManager;
25     
26     public DialogHistoryPageSite(Shell shell) {
27         this.shell = shell;
28     }
29     
30     public IPageSite getWorkbenchPageSite() {
31         return null;
32     }
33
34     public IWorkbenchPart getPart() {
35         return null;
36     }
37
38     public Shell getShell() {
39         return shell;
40     }
41
42     public ISelectionProvider getSelectionProvider() {
43         return selectionProvider;
44     }
45
46     public void setSelectionProvider(ISelectionProvider provider) {
47         this.selectionProvider = provider;
48     }
49
50     public void setFocus() {
51         // Nothing to do
52
}
53
54     public void setToolBarManager(IToolBarManager toolBarManager) {
55         this.toolBarManager = toolBarManager;
56     }
57
58     public boolean isModal() {
59         return true;
60     }
61
62     public IToolBarManager getToolBarManager() {
63         return toolBarManager;
64     }
65
66 }
67
Popular Tags