Java Code Examples for com.intellij.openapi.actionSystem.DefaultActionGroup#addAction()
The following examples show how to use
com.intellij.openapi.actionSystem.DefaultActionGroup#addAction() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DartVmServiceDebugProcess.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 5 votes |
@Override public void registerAdditionalActions(@NotNull final DefaultActionGroup leftToolbar, @NotNull final DefaultActionGroup topToolbar, @NotNull final DefaultActionGroup settings) { // For Run tool window this action is added in DartCommandLineRunningState.createActions() topToolbar.addSeparator(); topToolbar.addAction(new DartPopFrameAction()); }
Example 2
Source File: BazelTestDebugProcess.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 5 votes |
@Override public void registerAdditionalActions(@NotNull DefaultActionGroup leftToolbar, @NotNull DefaultActionGroup topToolbar, @NotNull DefaultActionGroup settings) { topToolbar.addSeparator(); topToolbar.addAction(new FlutterPopFrameAction()); topToolbar.addAction(new OpenDevToolsAction(connector, this::isActive)); }
Example 3
Source File: TestDebugProcess.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 5 votes |
@Override public void registerAdditionalActions(@NotNull DefaultActionGroup leftToolbar, @NotNull DefaultActionGroup topToolbar, @NotNull DefaultActionGroup settings) { topToolbar.addSeparator(); topToolbar.addAction(new FlutterPopFrameAction()); topToolbar.addAction(new OpenDevToolsAction(connector, this::isActive)); }
Example 4
Source File: DartVmServiceDebugProcess.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 5 votes |
@Override public void registerAdditionalActions(@NotNull final DefaultActionGroup leftToolbar, @NotNull final DefaultActionGroup topToolbar, @NotNull final DefaultActionGroup settings) { // For Run tool window this action is added in DartCommandLineRunningState.createActions() topToolbar.addSeparator(); topToolbar.addAction(new DartPopFrameAction()); }
Example 5
Source File: BazelTestDebugProcess.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 5 votes |
@Override public void registerAdditionalActions(@NotNull DefaultActionGroup leftToolbar, @NotNull DefaultActionGroup topToolbar, @NotNull DefaultActionGroup settings) { topToolbar.addSeparator(); topToolbar.addAction(new FlutterPopFrameAction()); topToolbar.addAction(new OpenDevToolsAction(connector, this::isActive)); }
Example 6
Source File: TestDebugProcess.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 5 votes |
@Override public void registerAdditionalActions(@NotNull DefaultActionGroup leftToolbar, @NotNull DefaultActionGroup topToolbar, @NotNull DefaultActionGroup settings) { topToolbar.addSeparator(); topToolbar.addAction(new FlutterPopFrameAction()); topToolbar.addAction(new OpenDevToolsAction(connector, this::isActive)); }
Example 7
Source File: ToolbarPanel.java From consulo with Apache License 2.0 | 4 votes |
public ToolbarPanel(final TestConsoleProperties properties, final JComponent parent) { super(new BorderLayout()); final DefaultActionGroup actionGroup = new DefaultActionGroup(null, false); actionGroup.addAction(new DumbAwareToggleInvertedBooleanProperty(ExecutionBundle.message("junit.run.hide.passed.action.name"), ExecutionBundle.message("junit.run.hide.passed.action.description"), AllIcons.RunConfigurations.TestPassed, properties, TestConsoleProperties.HIDE_PASSED_TESTS)); actionGroup.add(new DumbAwareToggleInvertedBooleanProperty("Show Ignored", "Show Ignored", AllIcons.RunConfigurations.TestIgnored, properties, TestConsoleProperties.HIDE_IGNORED_TEST)); actionGroup.addSeparator(); actionGroup.addAction(new DumbAwareToggleBooleanProperty(ExecutionBundle.message("junit.runing.info.sort.alphabetically.action.name"), ExecutionBundle.message("junit.runing.info.sort.alphabetically.action.description"), AllIcons.ObjectBrowser.Sorted, properties, TestConsoleProperties.SORT_ALPHABETICALLY)); final ToggleModelAction sortByStatistics = new SortByDurationAction(properties); myActions.add(sortByStatistics); actionGroup.addAction(sortByStatistics); actionGroup.addSeparator(); AnAction action = CommonActionsManager.getInstance().createExpandAllAction(myTreeExpander, parent); action.getTemplatePresentation().setDescription(ExecutionBundle.message("junit.runing.info.expand.test.action.name")); actionGroup.add(action); action = CommonActionsManager.getInstance().createCollapseAllAction(myTreeExpander, parent); action.getTemplatePresentation().setDescription(ExecutionBundle.message("junit.runing.info.collapse.test.action.name")); actionGroup.add(action); actionGroup.addSeparator(); final CommonActionsManager actionsManager = CommonActionsManager.getInstance(); myOccurenceNavigator = new FailedTestsNavigator(); actionGroup.add(actionsManager.createPrevOccurenceAction(myOccurenceNavigator)); actionGroup.add(actionsManager.createNextOccurenceAction(myOccurenceNavigator)); for (ToggleModelActionProvider actionProvider : ToggleModelActionProvider.EP_NAME.getExtensionList()) { final ToggleModelAction toggleModelAction = actionProvider.createToggleModelAction(properties); myActions.add(toggleModelAction); actionGroup.add(toggleModelAction); } final RunProfile configuration = properties.getConfiguration(); if (configuration instanceof RunConfiguration) { myExportAction = ExportTestResultsAction.create(properties.getExecutor().getToolWindowId(), (RunConfiguration)configuration); actionGroup.addAction(myExportAction); } final AnAction importAction = properties.createImportAction(); if (importAction != null) { actionGroup.addAction(importAction); } final DefaultActionGroup secondaryGroup = new DefaultActionGroup(); secondaryGroup.setPopup(true); secondaryGroup.getTemplatePresentation().setIcon(AllIcons.General.SecondaryGroup); secondaryGroup.add(new DumbAwareToggleBooleanProperty(ExecutionBundle.message("junit.runing.info.track.test.action.name"), ExecutionBundle.message("junit.runing.info.track.test.action.description"), null, properties, TestConsoleProperties.TRACK_RUNNING_TEST)); if (Registry.is("tests.view.old.statistics.panel")) { secondaryGroup.add(new ShowStatisticsAction(properties)); } secondaryGroup.add(new DumbAwareToggleBooleanProperty("Show Inline Statistics", "Toggle the visibility of the test duration in the tree", null, properties, TestConsoleProperties.SHOW_INLINE_STATISTICS)); secondaryGroup.addSeparator(); secondaryGroup.add(new DumbAwareToggleBooleanProperty(ExecutionBundle.message("junit.runing.info.scroll.to.stacktrace.action.name"), ExecutionBundle.message("junit.runing.info.scroll.to.stacktrace.action.description"), null, properties, TestConsoleProperties.SCROLL_TO_STACK_TRACE)); secondaryGroup.add(new ToggleBooleanProperty(ExecutionBundle.message("junit.runing.info.open.source.at.exception.action.name"), ExecutionBundle.message("junit.runing.info.open.source.at.exception.action.description"), null, properties, TestConsoleProperties.OPEN_FAILURE_LINE)); myScrollToSource = new ScrollToTestSourceAction(properties); secondaryGroup.add(myScrollToSource); secondaryGroup.add(new AdjustAutotestDelayActionGroup(parent)); secondaryGroup.addSeparator(); secondaryGroup.add(new DumbAwareToggleBooleanProperty(ExecutionBundle.message("junit.runing.info.select.first.failed.action.name"), null, null, properties, TestConsoleProperties.SELECT_FIRST_DEFECT)); properties.appendAdditionalActions(secondaryGroup, parent, properties); actionGroup.add(secondaryGroup); add(ActionManager.getInstance(). createActionToolbar(ActionPlaces.TESTTREE_VIEW_TOOLBAR, actionGroup, true). getComponent(), BorderLayout.CENTER); }