Package org.eclipse.egit.ui.internal.actions

Examples of org.eclipse.egit.ui.internal.actions.BooleanPrefAction


    };
    refreshAction.setImageDescriptor(UIIcons.ELCL16_REFRESH);
    toolbar.add(refreshAction);

    // link with selection
    Action linkSelectionAction = new BooleanPrefAction(
        (IPersistentPreferenceStore) getPreferenceStore(),
        UIPreferences.STAGING_VIEW_SYNC_SELECTION,
        UIText.StagingView_LinkSelection) {
      @Override
      public void apply(boolean value) {
        reactOnSelection = value;
      }
    };
    linkSelectionAction.setImageDescriptor(UIIcons.ELCL16_SYNCED);
    toolbar.add(linkSelectionAction);

    toolbar.add(new Separator());

    openNewCommitsAction = new Action(UIText.StagingView_OpenNewCommits,
View Full Code Here


    IWorkbenchAction reuseCompareEditorAction = new CompareUtils.ReuseCompareEditorAction();
    actionsToDispose.add(reuseCompareEditorAction);
    getViewSite().getActionBars().getMenuManager().add(
        reuseCompareEditorAction);

    compareModeAction = new BooleanPrefAction(
        (IPersistentPreferenceStore) Activator.getDefault()
            .getPreferenceStore(),
        UIPreferences.TREE_COMPARE_COMPARE_MODE,
        UIText.CompareTreeView_CompareModeTooltip) {
      @Override
      public void apply(boolean value) {
        // nothing, just switch the preference
      }
    };
    compareModeAction.setImageDescriptor(UIIcons.ELCL16_COMPARE_VIEW);
    compareModeAction.setEnabled(true);
    actionsToDispose.add(compareModeAction);
    getViewSite().getActionBars().getToolBarManager()
        .add(compareModeAction);

    showEqualsAction = new BooleanPrefAction(
        (IPersistentPreferenceStore) Activator.getDefault()
            .getPreferenceStore(),
        UIPreferences.TREE_COMPARE_SHOW_EQUALS,
        UIText.CompareTreeView_EqualFilesTooltip) {
      @Override
View Full Code Here

    listenOnRepositoryViewSelection = RebaseInteractivePreferences
        .isReactOnSelection();

    // link with selection
    Action linkSelectionAction = new BooleanPrefAction(
        (IPersistentPreferenceStore) Activator.getDefault()
            .getPreferenceStore(),
        UIPreferences.REBASE_INTERACTIVE_SYNC_SELECTION,
        UIText.InteractiveRebaseView_LinkSelection) {
      @Override
      public void apply(boolean value) {
        listenOnRepositoryViewSelection = value;
      }
    };
    linkSelectionAction.setImageDescriptor(UIIcons.ELCL16_SYNCED);
    toolbar.add(linkSelectionAction);
  }
View Full Code Here

    Control c = getControl();
    c.setMenu(mgr.createContextMenu(c));

    IPersistentPreferenceStore pstore = (IPersistentPreferenceStore) store;

    showTagSequencePrefAction = new BooleanPrefAction(pstore,
        UIPreferences.HISTORY_SHOW_TAG_SEQUENCE,
        UIText.ResourceHistory_ShowTagSequence) {
      @Override
      protected void apply(boolean value) {
        // nothing, just toggle
      }
    };
    mgr.add(showTagSequencePrefAction);

    wrapCommentsPrefAction = new BooleanPrefAction(pstore,
        UIPreferences.RESOURCEHISTORY_SHOW_COMMENT_WRAP,
        UIText.ResourceHistory_toggleCommentWrap) {
      @Override
      protected void apply(boolean value) {
        // nothing, just toggle
      }
    };
    mgr.add(wrapCommentsPrefAction);

    fillParagraphsPrefAction = new BooleanPrefAction(pstore,
        UIPreferences.RESOURCEHISTORY_SHOW_COMMENT_FILL,
        UIText.ResourceHistory_toggleCommentFill) {
      @Override
      protected void apply(boolean value) {
        // nothing, just toggle
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.actions.BooleanPrefAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.