Search in sources :

Example 6 with ContextHelpAction

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

the class EventLogToolWindowFactory method createToolbar.

private static ActionToolbar createToolbar(Project project, Editor editor, EventLogConsole console) {
    DefaultActionGroup group = new DefaultActionGroup();
    group.add(new EditNotificationSettings(project));
    group.add(new DisplayBalloons());
    group.add(new ToggleSoftWraps(editor));
    group.add(new ScrollToTheEndToolbarAction(editor));
    group.add(ActionManager.getInstance().getAction(IdeActions.ACTION_MARK_ALL_NOTIFICATIONS_AS_READ));
    group.add(new EventLogConsole.ClearLogAction(console));
    group.add(new ContextHelpAction(EventLog.HELP_ID));
    return ActionManager.getInstance().createActionToolbar(ActionPlaces.UNKNOWN, group, false);
}
Also used : ScrollToTheEndToolbarAction(com.intellij.openapi.editor.actions.ScrollToTheEndToolbarAction) ContextHelpAction(com.intellij.ide.actions.ContextHelpAction)

Example 7 with ContextHelpAction

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

the class ServersToolWindowContent method createToolbar.

private JComponent createToolbar() {
    DefaultActionGroup group = new DefaultActionGroup();
    group.add(ActionManager.getInstance().getAction(SERVERS_TOOL_WINDOW_TOOLBAR));
    group.add(new Separator());
    group.add(new ContextHelpAction(HELP_ID));
    ActionToolbar actionToolBar = ActionManager.getInstance().createActionToolbar(PLACE_TOOLBAR, group, false);
    myTree.putClientProperty(DataManager.CLIENT_PROPERTY_DATA_PROVIDER, new DataProvider() {

        @Override
        public Object getData(@NonNls String dataId) {
            if (KEY.getName().equals(dataId)) {
                return ServersToolWindowContent.this;
            }
            return myContribution.getData(dataId, ServersToolWindowContent.this);
        }
    });
    actionToolBar.setTargetComponent(myTree);
    return actionToolBar.getComponent();
}
Also used : ContextHelpAction(com.intellij.ide.actions.ContextHelpAction)

Example 8 with ContextHelpAction

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

the class AntExplorer method createToolbarPanel.

private JPanel createToolbarPanel() {
    final DefaultActionGroup group = new DefaultActionGroup();
    group.add(new AddAction());
    group.add(new RemoveAction());
    group.add(new RunAction());
    group.add(new ShowAllTargetsAction());
    AnAction action = CommonActionsManager.getInstance().createExpandAllAction(myTreeExpander, this);
    action.getTemplatePresentation().setDescription(AntBundle.message("ant.explorer.expand.all.nodes.action.description"));
    group.add(action);
    action = CommonActionsManager.getInstance().createCollapseAllAction(myTreeExpander, this);
    action.getTemplatePresentation().setDescription(AntBundle.message("ant.explorer.collapse.all.nodes.action.description"));
    group.add(action);
    group.add(myAntBuildFilePropertiesAction);
    group.add(new ContextHelpAction(HelpID.ANT));
    final ActionToolbar actionToolBar = ActionManager.getInstance().createActionToolbar(ActionPlaces.ANT_EXPLORER_TOOLBAR, group, true);
    return JBUI.Panels.simplePanel(actionToolBar.getComponent());
}
Also used : ContextHelpAction(com.intellij.ide.actions.ContextHelpAction)

Example 9 with ContextHelpAction

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

the class CoverageView method createToolbarActions.

private ActionGroup createToolbarActions(final CoverageViewTreeStructure treeStructure) {
    final DefaultActionGroup actionGroup = new DefaultActionGroup();
    actionGroup.add(new GoUpAction(treeStructure));
    if (treeStructure.supportFlattenPackages()) {
        actionGroup.add(new FlattenPackagesAction());
    }
    installAutoScrollToSource(actionGroup);
    installAutoScrollFromSource(actionGroup);
    actionGroup.add(ActionManager.getInstance().getAction("GenerateCoverageReport"));
    actionGroup.add(new CloseTabToolbarAction() {

        @Override
        public void actionPerformed(AnActionEvent e) {
            CoverageDataManager.getInstance(myProject).chooseSuitesBundle(null);
        }
    });
    actionGroup.add(new ContextHelpAction(HELP_ID));
    return actionGroup;
}
Also used : CloseTabToolbarAction(com.intellij.ide.actions.CloseTabToolbarAction) ContextHelpAction(com.intellij.ide.actions.ContextHelpAction)

Example 10 with ContextHelpAction

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

the class XDebugSessionTab method attachToSession.

private void attachToSession(@NotNull XDebugSessionImpl session) {
    for (XDebugView view : myViews.values()) {
        attachViewToSession(session, view);
    }
    XDebugTabLayouter layouter = session.getDebugProcess().createTabLayouter();
    Content consoleContent = layouter.registerConsoleContent(myUi, myConsole);
    attachNotificationTo(consoleContent);
    layouter.registerAdditionalContent(myUi);
    RunContentBuilder.addAdditionalConsoleEditorActions(myConsole, consoleContent);
    if (ApplicationManager.getApplication().isUnitTestMode()) {
        return;
    }
    DefaultActionGroup leftToolbar = new DefaultActionGroup();
    final Executor debugExecutor = DefaultDebugExecutor.getDebugExecutorInstance();
    if (myEnvironment != null) {
        leftToolbar.add(ActionManager.getInstance().getAction(IdeActions.ACTION_RERUN));
        List<AnAction> additionalRestartActions = session.getRestartActions();
        if (!additionalRestartActions.isEmpty()) {
            leftToolbar.addAll(additionalRestartActions);
            leftToolbar.addSeparator();
        }
        leftToolbar.addAll(session.getExtraActions());
    }
    leftToolbar.addAll(getCustomizedActionGroup(XDebuggerActions.TOOL_WINDOW_LEFT_TOOLBAR_GROUP));
    for (AnAction action : session.getExtraStopActions()) {
        leftToolbar.add(action, new Constraints(Anchor.AFTER, IdeActions.ACTION_STOP_PROGRAM));
    }
    //group.addSeparator();
    //addAction(group, DebuggerActions.EXPORT_THREADS);
    leftToolbar.addSeparator();
    leftToolbar.add(myUi.getOptions().getLayoutActions());
    final AnAction[] commonSettings = myUi.getOptions().getSettingsActionsList();
    DefaultActionGroup settings = new DefaultActionGroup(ActionsBundle.message("group.XDebugger.settings.text"), true);
    settings.getTemplatePresentation().setIcon(myUi.getOptions().getSettingsActions().getTemplatePresentation().getIcon());
    settings.addAll(commonSettings);
    leftToolbar.add(settings);
    leftToolbar.addSeparator();
    leftToolbar.add(PinToolwindowTabAction.getPinAction());
    leftToolbar.add(new CloseAction(myEnvironment != null ? myEnvironment.getExecutor() : debugExecutor, myRunContentDescriptor, myProject));
    leftToolbar.add(new ContextHelpAction(debugExecutor.getHelpId()));
    DefaultActionGroup topToolbar = new DefaultActionGroup();
    topToolbar.addAll(getCustomizedActionGroup(XDebuggerActions.TOOL_WINDOW_TOP_TOOLBAR_GROUP));
    session.getDebugProcess().registerAdditionalActions(leftToolbar, topToolbar, settings);
    myUi.getOptions().setLeftToolbar(leftToolbar, ActionPlaces.DEBUGGER_TOOLBAR);
    myUi.getOptions().setTopToolbar(topToolbar, ActionPlaces.DEBUGGER_TOOLBAR);
    if (myEnvironment != null) {
        initLogConsoles(myEnvironment.getRunProfile(), myRunContentDescriptor, myConsole);
    }
}
Also used : DefaultDebugExecutor(com.intellij.execution.executors.DefaultDebugExecutor) Executor(com.intellij.execution.Executor) Content(com.intellij.ui.content.Content) XDebugTabLayouter(com.intellij.xdebugger.ui.XDebugTabLayouter) CloseAction(com.intellij.execution.ui.actions.CloseAction) 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