for(int i = 0; i < nextEntries.length; i++) entryArray.add(nextEntries[ i]);
for(int i = 0; i < fetchedEntries.length; i++) entryArray.add(fetchedEntries[ i]);
    public IStatus run(IProgressMonitor monitor) {      try {        if(remoteResource != null && !shutdown) {          SVNRevision pegRevision = remoteResource.getRevision();          SVNRevision revisionEnd = new SVNRevision.Number(0);          boolean stopOnCopy = toggleStopOnCopyAction.isChecked();          IPreferenceStore store = SVNUIPlugin.getPlugin().getPreferenceStore();          int entriesToFetch = store.getInt(ISVNUIConstants.PREF_LOG_ENTRIES_TO_FETCH);          long limit = entriesToFetch;          ILogEntry[] nextEntries = remoteResource.getLogEntries(monitor, pegRevision, revisionStart, revisionEnd,              stopOnCopy, limit + 1, tagManager);          long entriesLength = nextEntries.length;          if(entriesLength > limit) {            ILogEntry[] fetchedEntries = new ILogEntry[ nextEntries.length - 1];            for(int i = 0; i < nextEntries.length - 1; i++)              fetchedEntries[ i] = nextEntries[ i];            getNextAction.setEnabled(true);          } else {            getNextAction.setEnabled(false);          }          ArrayList entryArray = new ArrayList();          if(entries == null)            entries = new ILogEntry[ 0];          for(int i = 0; i < entries.length; i++)            entryArray.add(entries[ i]);          for(int i = 0; i < nextEntries.length; i++)            entryArray.add(nextEntries[ i]);          entries = new ILogEntry[ entryArray.size()];          entryArray.toArray(entries);          getSite().getShell().getDisplay().asyncExec(new Runnable() {            public void run() {              if(entries != null && tableHistoryViewer != null && !tableHistoryViewer.getTable().isDisposed()) {                // once we got the entries, we refresh the table                ISelection selection = tableHistoryViewer.getSelection();                tableHistoryViewer.refresh();                tableHistoryViewer.setSelection(selection);                if(entries.length > 0) {                  lastEntry = entries[ entries.length - 1];                  long lastEntryNumber = lastEntry.getRevision().getNumber();                  revisionStart = new SVNRevision.Number(lastEntryNumber - 1);                }              }            }          });        }        return Status.OK_STATUS;      } catch(TeamException e) {        return e.getStatus();      }    }