final ISVNRemoteResource remoteResource = historyTableProvider.getRemoteResource(); if(fetchAllLogEntriesJob == null) { fetchAllLogEntriesJob = new FetchAllLogEntriesJob(); } if(fetchAllLogEntriesJob.getState() != Job.NONE) { fetchAllLogEntriesJob.cancel(); try { fetchAllLogEntriesJob.join(); } catch(InterruptedException e) { SVNUIPlugin.log(new SVNException(Policy .bind("HistoryView.errorFetchingEntries", remoteResource.getName()), e)); } } fetchAllLogEntriesJob.setRemoteFile(remoteResource); Utils.schedule(fetchAllLogEntriesJob, getSite()); }
if (historySearchDialog == null) { historySearchDialog = new HistorySearchDialog(getSite().getShell(), remoteResource); } historySearchDialog.setRemoteResource(remoteResource); if (historySearchDialog.open() == Window.OK) { searchAction.setEnabled(false); Utils.schedule(new SearchHistoryJob(), SVNUIPlugin.getPlugin().getWorkbench().getActiveWorkbenchWindow() .getActivePage().getActivePart().getSite()); } }
        public void run() {          final ISVNRemoteResource remoteResource = historyTableProvider.getRemoteResource();          if(fetchAllLogEntriesJob == null) {            fetchAllLogEntriesJob = new FetchAllLogEntriesJob();          }          if(fetchAllLogEntriesJob.getState() != Job.NONE) {            fetchAllLogEntriesJob.cancel();            try {              fetchAllLogEntriesJob.join();            } catch(InterruptedException e) {              SVNUIPlugin.log(new SVNException(Policy                  .bind("HistoryView.errorFetchingEntries", remoteResource.getName()), e)); //$NON-NLS-1$            }          }          fetchAllLogEntriesJob.setRemoteFile(remoteResource);          Utils.schedule(fetchAllLogEntriesJob, getSite());        }