HistoryView historyView = HistoryView.getView(); if (historyView != null) { IAction getNextAction = historyView.getGetNextAction(); if (getNextAction != null) { if (entriesToFetch <= 0) getNextAction.setEnabled(false); else { getNextAction.setEnabled(true); getNextAction.setToolTipText(Policy.bind("HistoryView.getNext") + " " + entriesToFetch); } } }
	public boolean performOk() {		IPreferenceStore store = getPreferenceStore();        // save show compare revision in dialog pref		store.setValue(ISVNUIConstants.PREF_SHOW_COMPARE_REVISION_IN_DIALOG, showCompareRevisionInDialog.getSelection());				store.setValue(ISVNUIConstants.PREF_FETCH_CHANGE_PATH_ON_DEMAND, fetchChangePathOnDemand.getSelection());				store.setValue(ISVNUIConstants.PREF_SHOW_TAGS_IN_REMOTE, showTagsInRemoteHistory.getSelection());		        // save select unadded resources on commit pref		store.setValue(ISVNUIConstants.PREF_SELECT_UNADDED_RESOURCES_ON_COMMIT, selectUnadded.getSelection());		if (quickDiffAnnotateYes.getSelection()) {			store.setValue(ISVNUIConstants.PREF_USE_QUICKDIFFANNOTATE, MessageDialogWithToggle.ALWAYS);		} else if (quickDiffAnnotateNo.getSelection()) {			store.setValue(ISVNUIConstants.PREF_USE_QUICKDIFFANNOTATE, MessageDialogWithToggle.NEVER);		} else if (quickDiffAnnotatePrompt.getSelection()) {			store.setValue(ISVNUIConstants.PREF_USE_QUICKDIFFANNOTATE, MessageDialogWithToggle.PROMPT);		}				int entriesToFetch = store.getInt(ISVNUIConstants.PREF_LOG_ENTRIES_TO_FETCH);		try {			entriesToFetch = Integer.parseInt(logEntriesToFetchText.getText().trim());		} catch (Exception e) {}				store.setValue(ISVNUIConstants.PREF_LOG_ENTRIES_TO_FETCH, entriesToFetch);				HistoryView historyView = HistoryView.getView();		if (historyView != null) {			IAction getNextAction = historyView.getGetNextAction();			if (getNextAction != null) {				if (entriesToFetch <= 0) getNextAction.setEnabled(false);				else {					getNextAction.setEnabled(true);					getNextAction.setToolTipText(Policy.bind("HistoryView.getNext") + " " + entriesToFetch);				}			}		}		        // save svn interface pref        if (javahlRadio.getSelection() ){            store.setValue(ISVNUIConstants.PREF_SVNINTERFACE, JhlClientAdapterFactory.JAVAHL_CLIENT);        }else{            store.setValue(ISVNUIConstants.PREF_SVNINTERFACE, JavaSvnClientAdapterFactory.JAVASVN_CLIENT);        }                // save config location pref        if (defaultConfigLocationRadio.getSelection()) {        	store.setValue(ISVNUIConstants.PREF_SVNCONFIGDIR, ""); //$NON-NLS-1$        } else {            store.setValue(ISVNUIConstants.PREF_SVNCONFIGDIR,directoryLocationText.getText());        }        		SVNUIPlugin.getPlugin().savePluginPreferences();		return true;	}