Search in sources :

Example 16 with ContextHelpAction

use of com.intellij.ide.actions.ContextHelpAction in project intellij-community by JetBrains.

the class HierarchyBrowserBase method appendActions.

protected void appendActions(@NotNull DefaultActionGroup actionGroup, @Nullable String helpID) {
    actionGroup.add(myAutoScrollToSourceHandler.createToggleAction());
    ActionManager actionManager = ActionManager.getInstance();
    actionGroup.add(actionManager.getAction(IdeActions.ACTION_EXPAND_ALL));
    actionGroup.add(actionManager.getAction(PinToolwindowTabAction.ACTION_NAME));
    actionGroup.add(CommonActionsManager.getInstance().createExportToTextFileAction(new ExporterToTextFileHierarchy(this)));
    actionGroup.add(new CloseAction());
    if (helpID != null) {
        actionGroup.add(new ContextHelpAction(helpID));
    }
}
Also used : ContextHelpAction(com.intellij.ide.actions.ContextHelpAction)

Example 17 with ContextHelpAction

use of com.intellij.ide.actions.ContextHelpAction in project intellij-community by JetBrains.

the class CommittedChangesTreeBrowser method createGroupFilterToolbar.

public ActionToolbar createGroupFilterToolbar(final Project project, final ActionGroup leadGroup, @Nullable final ActionGroup tailGroup, final List<AnAction> extra) {
    DefaultActionGroup toolbarGroup = new DefaultActionGroup();
    toolbarGroup.add(leadGroup);
    toolbarGroup.addSeparator();
    toolbarGroup.add(new SelectFilteringAction(project, this));
    toolbarGroup.add(new SelectGroupingAction(project, this));
    final ExpandAllAction expandAllAction = new ExpandAllAction(myChangesTree);
    final CollapseAllAction collapseAllAction = new CollapseAllAction(myChangesTree);
    expandAllAction.registerCustomShortcutSet(new CustomShortcutSet(KeymapManager.getInstance().getActiveKeymap().getShortcuts(IdeActions.ACTION_EXPAND_ALL)), myChangesTree);
    collapseAllAction.registerCustomShortcutSet(new CustomShortcutSet(KeymapManager.getInstance().getActiveKeymap().getShortcuts(IdeActions.ACTION_COLLAPSE_ALL)), myChangesTree);
    toolbarGroup.add(expandAllAction);
    toolbarGroup.add(collapseAllAction);
    toolbarGroup.add(ActionManager.getInstance().getAction(VcsActions.ACTION_COPY_REVISION_NUMBER));
    toolbarGroup.add(new ContextHelpAction(myHelpId));
    if (tailGroup != null) {
        toolbarGroup.add(tailGroup);
    }
    for (AnAction anAction : extra) {
        toolbarGroup.add(anAction);
    }
    return ActionManager.getInstance().createActionToolbar(ActionPlaces.UNKNOWN, toolbarGroup, true);
}
Also used : CollapseAllAction(com.intellij.ui.treeStructure.actions.CollapseAllAction) ExpandAllAction(com.intellij.ui.treeStructure.actions.ExpandAllAction) ContextHelpAction(com.intellij.ide.actions.ContextHelpAction)

Example 18 with ContextHelpAction

use of com.intellij.ide.actions.ContextHelpAction in project intellij-community by JetBrains.

the class RunContentBuilder method createActionToolbar.

@NotNull
private ActionGroup createActionToolbar(@NotNull final RunContentDescriptor contentDescriptor) {
    final DefaultActionGroup actionGroup = new DefaultActionGroup();
    actionGroup.add(ActionManager.getInstance().getAction(IdeActions.ACTION_RERUN));
    final AnAction[] actions = contentDescriptor.getRestartActions();
    actionGroup.addAll(actions);
    if (actions.length > 0) {
        actionGroup.addSeparator();
    }
    actionGroup.add(ActionManager.getInstance().getAction(IdeActions.ACTION_STOP_PROGRAM));
    actionGroup.addAll(myExecutionResult.getActions());
    for (AnAction anAction : myRunnerActions) {
        if (anAction != null) {
            actionGroup.add(anAction);
        } else {
            actionGroup.addSeparator();
        }
    }
    actionGroup.addSeparator();
    actionGroup.add(myUi.getOptions().getLayoutActions());
    actionGroup.addSeparator();
    actionGroup.add(PinToolwindowTabAction.getPinAction());
    actionGroup.add(new CloseAction(myEnvironment.getExecutor(), contentDescriptor, myProject));
    final String helpId = contentDescriptor.getHelpId();
    actionGroup.add(new ContextHelpAction(helpId != null ? helpId : myEnvironment.getExecutor().getHelpId()));
    return actionGroup;
}
Also used : CloseAction(com.intellij.execution.ui.actions.CloseAction) ContextHelpAction(com.intellij.ide.actions.ContextHelpAction) NotNull(org.jetbrains.annotations.NotNull)

Example 19 with ContextHelpAction

use of com.intellij.ide.actions.ContextHelpAction in project intellij-community by JetBrains.

the class DefaultDebugUIEnvironment method initActions.

@Override
public void initActions(RunContentDescriptor content, DefaultActionGroup actionGroup) {
    Executor executor = myExecutionEnvironment.getExecutor();
    actionGroup.add(ActionManager.getInstance().getAction(IdeActions.ACTION_RERUN), Constraints.FIRST);
    actionGroup.add(new CloseAction(executor, content, myExecutionEnvironment.getProject()));
    actionGroup.add(new ContextHelpAction(executor.getHelpId()));
}
Also used : Executor(com.intellij.execution.Executor) CloseAction(com.intellij.execution.ui.actions.CloseAction) ContextHelpAction(com.intellij.ide.actions.ContextHelpAction)

Example 20 with ContextHelpAction

use of com.intellij.ide.actions.ContextHelpAction in project intellij-community by JetBrains.

the class InspectionResultsView method createLeftActionsToolbar.

private JComponent createLeftActionsToolbar() {
    final CommonActionsManager actionsManager = CommonActionsManager.getInstance();
    DefaultActionGroup group = new DefaultActionGroup();
    group.add(new RerunAction(this));
    group.add(new CloseAction());
    final TreeExpander treeExpander = new TreeExpander() {

        @Override
        public void expandAll() {
            TreeUtil.expandAll(myTree);
        }

        @Override
        public boolean canExpand() {
            return true;
        }

        @Override
        public void collapseAll() {
            TreeUtil.collapseAll(myTree, 0);
        }

        @Override
        public boolean canCollapse() {
            return true;
        }
    };
    group.add(actionsManager.createExpandAllAction(treeExpander, myTree));
    group.add(actionsManager.createCollapseAllAction(treeExpander, myTree));
    group.add(actionsManager.createPrevOccurenceAction(getOccurenceNavigator()));
    group.add(actionsManager.createNextOccurenceAction(getOccurenceNavigator()));
    group.add(new ContextHelpAction(HELP_ID));
    return createToolbar(group);
}
Also used : ContextHelpAction(com.intellij.ide.actions.ContextHelpAction)

Aggregations

ContextHelpAction (com.intellij.ide.actions.ContextHelpAction)22 CloseAction (com.intellij.execution.ui.actions.CloseAction)4 Executor (com.intellij.execution.Executor)3 NextOccurenceToolbarAction (com.intellij.ide.actions.NextOccurenceToolbarAction)2 PreviousOccurenceToolbarAction (com.intellij.ide.actions.PreviousOccurenceToolbarAction)2 NotNull (org.jetbrains.annotations.NotNull)2 DefaultDebugExecutor (com.intellij.execution.executors.DefaultDebugExecutor)1 FindModel (com.intellij.find.FindModel)1 TreeExpander (com.intellij.ide.TreeExpander)1 CloseTabToolbarAction (com.intellij.ide.actions.CloseTabToolbarAction)1 TodoItemNode (com.intellij.ide.todo.nodes.TodoItemNode)1 NodeDescriptor (com.intellij.ide.util.treeView.NodeDescriptor)1 ActionGroup (com.intellij.openapi.actionSystem.ActionGroup)1 DefaultActionGroup (com.intellij.openapi.actionSystem.DefaultActionGroup)1 ScrollToTheEndToolbarAction (com.intellij.openapi.editor.actions.ScrollToTheEndToolbarAction)1 SimpleToolWindowPanel (com.intellij.openapi.ui.SimpleToolWindowPanel)1 IgnoredSettingsAction (com.intellij.openapi.vcs.changes.actions.IgnoredSettingsAction)1 SeparatorComponent (com.intellij.ui.SeparatorComponent)1 Content (com.intellij.ui.content.Content)1 CollapseAllAction (com.intellij.ui.treeStructure.actions.CollapseAllAction)1