1 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 } 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 |