getHistoryTableProvider().setFile(edition);
getHistoryTableProvider().setRemoteResource(edition);
	private void initializeActions() {		getContentsAction = new Action(Policy.bind("HistoryView.getContentsAction"), null) { //$NON-NLS-1$			public void run() {				try {					new ProgressMonitorDialog(shell).run(false, true, new WorkspaceModifyOperation() {						protected void execute(IProgressMonitor monitor) throws InvocationTargetException {							IStructuredSelection selection = (IStructuredSelection)viewer.getSelection();							if (selection.size() != 1) return;							VersionCompareDiffNode node = (VersionCompareDiffNode)selection.getFirstElement();							ResourceEditionNode right = (ResourceEditionNode)node.getRight();							ISVNRemoteResource edition = right.getRemoteResource();							// Do the load. This just consists of setting the local contents. We don't							// actually want to change the base.							try {								monitor.beginTask(null, 100);								InputStream in = ((IResourceVariant)edition).getStorage(new SubProgressMonitor(monitor, 50)).getContents();								resource.setContents(in, false, true, new SubProgressMonitor(monitor, 50));							} catch (TeamException e) {								throw new InvocationTargetException(e);							} catch (CoreException e) {								throw new InvocationTargetException(e);							} finally {								monitor.done();							}						}					});				} catch (InterruptedException e) {					// Do nothing					return;				} catch (InvocationTargetException e) {					handle(e);				}				// recompute the labels on the viewer				updateCurrentEdition();				viewer.refresh();			}		};				getRevisionAction = new Action(Policy.bind("HistoryView.getRevisionAction"), null) { //$NON-NLS-1$			public void run() {				try {					new ProgressMonitorDialog(shell).run(false, true, new WorkspaceModifyOperation() {						protected void execute(IProgressMonitor monitor) throws InvocationTargetException {							IStructuredSelection selection = (IStructuredSelection)viewer.getSelection();							if (selection.size() != 1) return;							VersionCompareDiffNode node = (VersionCompareDiffNode)selection.getFirstElement();							ResourceEditionNode right = (ResourceEditionNode)node.getRight();							ISVNRemoteFile edition = (ISVNRemoteFile)right.getRemoteResource();							// Do the load. This just consists of setting the local contents. We don't							// actually want to change the base.							try {								SVNTeamProvider provider = (SVNTeamProvider)RepositoryProvider.getProvider(resource.getProject());                                provider.update(new IResource[] {resource},edition.getLastChangedRevision(),monitor);								getHistoryTableProvider().setFile(edition);							} catch (TeamException e) {								throw new InvocationTargetException(e);							}						}					});				} catch (InterruptedException e) {					// Do nothing					return;				} catch (InvocationTargetException e) {					handle(e);				}				// recompute the labels on the viewer				viewer.refresh();			}		};	}