changePathsTableProvider.setLogEntry(entry);
changePathsTableProvider.setInput(entry);
	protected Control createDialogArea(Composite parent) {		getLogEntries();	    if (resource == null)	        getShell().setText(Policy.bind("HistoryDialog.title") + " - " + remoteResource.getName()); //$NON-NLS-1$ //$NON-NLS-2$	    else	        getShell().setText(Policy.bind("HistoryDialog.title") + " - " + resource.getName()); //$NON-NLS-1$ //$NON-NLS-2$		Composite composite = new Composite(parent, SWT.NULL);		composite.setLayout(new GridLayout());		GridData data = new GridData(GridData.FILL_BOTH);		composite.setLayoutData(data);				historyTableProvider = new HistoryTableProvider();		historyTableProvider.setRemoteResource(remoteResource);		tableHistoryViewer = historyTableProvider.createTable(composite);		data = new GridData(GridData.FILL_BOTH);		data.widthHint = WIDTH_HINT;		data.heightHint = LOG_HEIGHT_HINT;		tableHistoryViewer.getTable().setLayoutData(data);		tableHistoryViewer.setContentProvider(new IStructuredContentProvider() {            public void dispose() {            }            public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {            }            public Object[] getElements(Object inputElement) {                return entries;            }	    		});		tableHistoryViewer.addSelectionChangedListener(new ISelectionChangedListener() {            public void selectionChanged(SelectionChangedEvent event) {                ISelection selection = event.getSelection();				if (selection == null || !(selection instanceof IStructuredSelection)) {					textViewer.setDocument(new Document("")); //$NON-NLS-1$                    changePathsTableProvider.setLogEntry(null);					return;				}				IStructuredSelection ss = (IStructuredSelection)selection;				if (ss.size() != 1) {					textViewer.setDocument(new Document("")); //$NON-NLS-1$                    changePathsTableProvider.setLogEntry(null);					return;				}				LogEntry entry = (LogEntry)ss.getFirstElement();				textViewer.setDocument(new Document(entry.getComment()));                changePathsTableProvider.setLogEntry(entry);                                 }		    		});		tableHistoryViewer.addDoubleClickListener(new IDoubleClickListener() {            public void doubleClick(DoubleClickEvent event) {                okPressed();            }	    		});				tableHistoryViewer.setInput(remoteResource);				textViewer = new TextViewer(composite, SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI | SWT.BORDER | SWT.READ_ONLY);		data = new GridData(GridData.FILL_BOTH);		data.heightHint = COMMENT_HEIGHT_HINT;		data.widthHint = WIDTH_HINT;		textViewer.getControl().setLayoutData(data);				changePathsTableProvider = new ChangePathsTableProvider();		tableChangePathViewer = changePathsTableProvider.createTable(composite);        tableChangePathViewer.setContentProvider(new IStructuredContentProvider() {			public Object[] getElements(Object inputElement) {                if ((inputElement == null) || (!(inputElement instanceof ILogEntry))) {                    return null;                }                ILogEntry logEntry = (ILogEntry)inputElement;				return logEntry.getLogEntryChangePaths();			}			public void dispose() {			}			public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {			}        });        		data = new GridData(GridData.FILL_BOTH);		data.heightHint = PATHS_HEIGHT_HINT;		data.widthHint = WIDTH_HINT;		tableChangePathViewer.getTable().setLayoutData(data);				stopOnCopyButton = new Button(composite, SWT.CHECK);		stopOnCopyButton.setText(Policy.bind("HistoryView.stopOnCopy"));		stopOnCopyButton.setSelection(store.getBoolean(ISVNUIConstants.PREF_STOP_ON_COPY));		stopOnCopyButton.addSelectionListener(new SelectionAdapter() {			public void widgetSelected(SelectionEvent e) {				store.setValue(ISVNUIConstants.PREF_STOP_ON_COPY, stopOnCopyButton.getSelection());								revisionStart = SVNRevision.HEAD;				getLogEntries();				tableHistoryViewer.refresh();			}		});				return composite;	}