tbm.add(getSearchAction()); tbm.add(getClearSearchAction()); tbm.add(new Separator());
  private void contributeActions() {    SVNUIPlugin plugin = SVNUIPlugin.getPlugin();    final IPreferenceStore store = plugin.getPreferenceStore();    toggleShowComments = new Action(Policy.bind("HistoryView.showComments"), //$NON-NLS-1$        SVNUIPlugin.getPlugin().getImageDescriptor(ISVNUIConstants.IMG_COMMENTS)) {      public void run() {        showComments = isChecked();        setViewerVisibility();        store.setValue(ISVNUIConstants.PREF_SHOW_COMMENTS, showComments);      }    };    toggleShowComments.setChecked(showComments);    // PlatformUI.getWorkbench().getHelpSystem().setHelp(toggleTextAction,    // IHelpContextIds.SHOW_COMMENT_IN_HISTORY_ACTION);    // Toggle wrap comments action    toggleWrapCommentsAction = new Action(Policy.bind("HistoryView.wrapComments")) { //$NON-NLS-1$      public void run() {        wrapCommentsText = isChecked();        setViewerVisibility();        store.setValue(ISVNUIConstants.PREF_WRAP_COMMENTS, wrapCommentsText);      }    };    toggleWrapCommentsAction.setChecked(wrapCommentsText);    // PlatformUI.getWorkbench().getHelpSystem().setHelp(toggleTextWrapAction,    // IHelpContextIds.SHOW_TAGS_IN_HISTORY_ACTION);    // Toggle path visible action    toggleShowAffectedPathsAction = new Action(Policy.bind("HistoryView.showAffectedPaths"), //$NON-NLS-1$        SVNUIPlugin.getPlugin().getImageDescriptor(ISVNUIConstants.IMG_AFFECTED_PATHS_FLAT_MODE)) {      public void run() {        showAffectedPaths = isChecked();        setViewerVisibility();        store.setValue(ISVNUIConstants.PREF_SHOW_PATHS, showAffectedPaths);      }    };    toggleShowAffectedPathsAction.setChecked(showAffectedPaths);    // PlatformUI.getWorkbench().getHelpSystem().setHelp(toggleListAction,    // IHelpContextIds.SHOW_TAGS_IN_HISTORY_ACTION);    // Toggle stop on copy action    toggleStopOnCopyAction = new Action(Policy.bind("HistoryView.stopOnCopy")) { //$NON-NLS-1$      public void run() {        refresh();        SVNUIPlugin.getPlugin().getPreferenceStore().setValue(ISVNUIConstants.PREF_STOP_ON_COPY,            toggleStopOnCopyAction.isChecked());      }    };    toggleStopOnCopyAction.setChecked(store.getBoolean(ISVNUIConstants.PREF_STOP_ON_COPY));        IHistoryPageSite parentSite = getHistoryPageSite();    IPageSite pageSite = parentSite.getWorkbenchPageSite();    IActionBars actionBars = pageSite.getActionBars();    // Contribute toggle text visible to the toolbar drop-down    IMenuManager actionBarsMenu = actionBars.getMenuManager();    actionBarsMenu.add(getGetNextAction());    actionBarsMenu.add(getGetAllAction());    actionBarsMenu.add(toggleStopOnCopyAction);    actionBarsMenu.add(new Separator());    actionBarsMenu.add(toggleWrapCommentsAction);    actionBarsMenu.add(new Separator());    actionBarsMenu.add(toggleShowComments);    actionBarsMenu.add(toggleShowAffectedPathsAction);    actionBarsMenu.add(new Separator());    actionBarsMenu.add(toggleAffectedPathsModeActions[0]);    actionBarsMenu.add(toggleAffectedPathsModeActions[1]);    actionBarsMenu.add(new Separator());    actionBarsMenu.add(toggleAffectedPathsLayoutActions[0]);    actionBarsMenu.add(toggleAffectedPathsLayoutActions[1]);        // Create the local tool bar    IToolBarManager tbm = actionBars.getToolBarManager();    // tbm.add(getRefreshAction());    tbm.add(new Separator());    tbm.add(toggleShowComments);    tbm.add(toggleShowAffectedPathsAction);    tbm.add(new Separator());    tbm.add(getGetNextAction());    tbm.add(getGetAllAction());    // tbm.add(getLinkWithEditorAction());    tbm.update(false);        actionBars.updateActionBars();    }