IPreferenceStore store = SVNUIPlugin.getPlugin().getPreferenceStore(); int entriesToFetch = store.getInt(ISVNUIConstants.PREF_LOG_ENTRIES_TO_FETCH); SVNUIPlugin plugin = SVNUIPlugin.getPlugin(); getNextAction = new Action( Policy.bind("HistoryView.getNext"), plugin.getImageDescriptor(ISVNUIConstants.IMG_GET_NEXT)) { public void run() { final ISVNRemoteResource remoteResource = historyTableProvider.getRemoteResource(); if(fetchNextLogEntriesJob == null) { fetchNextLogEntriesJob = new FetchNextLogEntriesJob(); } if(fetchNextLogEntriesJob.getState() != Job.NONE) { fetchNextLogEntriesJob.cancel(); try { fetchNextLogEntriesJob.join(); } catch(InterruptedException e) { SVNUIPlugin.log(new SVNException(Policy .bind("HistoryView.errorFetchingEntries", remoteResource.getName()), e)); } } fetchNextLogEntriesJob.setRemoteFile(remoteResource); Utils.schedule(fetchNextLogEntriesJob, getSite()); } }; getNextAction.setToolTipText(Policy.bind("HistoryView.getNext") + " " + entriesToFetch); if(entriesToFetch <= 0) getNextAction.setEnabled(false);
getNextAction = new GetNextAction();
  public IAction getGetNextAction() {    if(getNextAction == null) {      IPreferenceStore store = SVNUIPlugin.getPlugin().getPreferenceStore();      int entriesToFetch = store.getInt(ISVNUIConstants.PREF_LOG_ENTRIES_TO_FETCH);      SVNUIPlugin plugin = SVNUIPlugin.getPlugin();      getNextAction = new Action(          Policy.bind("HistoryView.getNext"), plugin.getImageDescriptor(ISVNUIConstants.IMG_GET_NEXT)) { //$NON-NLS-1$        public void run() {          final ISVNRemoteResource remoteResource = historyTableProvider.getRemoteResource();          if(fetchNextLogEntriesJob == null) {            fetchNextLogEntriesJob = new FetchNextLogEntriesJob();          }          if(fetchNextLogEntriesJob.getState() != Job.NONE) {            fetchNextLogEntriesJob.cancel();            try {              fetchNextLogEntriesJob.join();            } catch(InterruptedException e) {              SVNUIPlugin.log(new SVNException(Policy                  .bind("HistoryView.errorFetchingEntries", remoteResource.getName()), e)); //$NON-NLS-1$            }          }          fetchNextLogEntriesJob.setRemoteFile(remoteResource);          Utils.schedule(fetchNextLogEntriesJob, getSite());        }      };      getNextAction.setToolTipText(Policy.bind("HistoryView.getNext") + " " + entriesToFetch); //$NON-NLS-1$      if(entriesToFetch <= 0)        getNextAction.setEnabled(false);    }    return getNextAction;  }