com.intellij.openapi.actionSystem.Separator Java Examples
The following examples show how to use
com.intellij.openapi.actionSystem.Separator.
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: LaunchState.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 6 votes |
@NotNull protected ExecutionResult setUpConsoleAndActions(@NotNull FlutterApp app) throws ExecutionException { final ConsoleView console = createConsole(getEnvironment().getExecutor()); if (console != null) { app.setConsole(console); console.attachToProcess(app.getProcessHandler()); } // Add observatory actions. // These actions are effectively added only to the Run tool window. // For Debug see FlutterDebugProcess.registerAdditionalActions() final Computable<Boolean> observatoryAvailable = () -> !app.getProcessHandler().isProcessTerminated() && app.getConnector().getBrowserUrl() != null; final List<AnAction> actions = new ArrayList<>(Arrays.asList( super.createActions(console, app.getProcessHandler(), getEnvironment().getExecutor()))); actions.add(new Separator()); actions.add(new OpenDevToolsAction(app.getConnector(), observatoryAvailable)); return new DefaultExecutionResult(console, app.getProcessHandler(), actions.toArray(new AnAction[0])); }
Example #2
Source File: LaunchState.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 6 votes |
@NotNull protected ExecutionResult setUpConsoleAndActions(@NotNull FlutterApp app) throws ExecutionException { final ConsoleView console = createConsole(getEnvironment().getExecutor()); if (console != null) { app.setConsole(console); console.attachToProcess(app.getProcessHandler()); } // Add observatory actions. // These actions are effectively added only to the Run tool window. // For Debug see FlutterDebugProcess.registerAdditionalActions() final Computable<Boolean> observatoryAvailable = () -> !app.getProcessHandler().isProcessTerminated() && app.getConnector().getBrowserUrl() != null; final List<AnAction> actions = new ArrayList<>(Arrays.asList( super.createActions(console, app.getProcessHandler(), getEnvironment().getExecutor()))); actions.add(new Separator()); actions.add(new OpenDevToolsAction(app.getConnector(), observatoryAvailable)); return new DefaultExecutionResult(console, app.getProcessHandler(), actions.toArray(new AnAction[0])); }
Example #3
Source File: P4QuickListContentProvider.java From p4ic4idea with Apache License 2.0 | 5 votes |
@Nullable @Override public List<AnAction> getVcsActions(Project project, AbstractVcs activeVcs, DataContext dataContext) { if (activeVcs == null || !P4Vcs.VCS_NAME.equals(activeVcs.getName())) { return null; } final ActionManager manager = ActionManager.getInstance(); final List<AnAction> actions = new ArrayList<AnAction>(); actions.add(new Separator(activeVcs.getDisplayName())); add("CheckinProject", manager, actions); add("CheckinFiles", manager, actions); add("ChangesView.Revert", manager, actions); add("UpdateFiles", manager, actions); add("ChangesView.AddUnversioned", manager, actions); addSeparator(actions); add("Vcs.ShowTabbedFileHistory", manager, actions); add("Annotate", manager, actions); add("Compare.SameVersion", manager, actions); add("Compare.Selected", manager, actions); /* FIXME add shelve/unshelve capability. addSeparator(actions); add("P4.Shelve", manager, actions); add("P4.Unshelve", manager, actions); */ /* add("P4.ResolveConflicts", manager, actions); */ return actions; }
Example #4
Source File: P4QuickListContentProvider.java From p4ic4idea with Apache License 2.0 | 4 votes |
private static void addSeparator(@NotNull final List<AnAction> actions) { actions.add(new Separator()); }