当前位置: 首页>>代码示例>>Java>>正文


Java RunContentBuilder.addAdditionalConsoleEditorActions方法代码示例

本文整理汇总了Java中com.intellij.execution.runners.RunContentBuilder.addAdditionalConsoleEditorActions方法的典型用法代码示例。如果您正苦于以下问题:Java RunContentBuilder.addAdditionalConsoleEditorActions方法的具体用法?Java RunContentBuilder.addAdditionalConsoleEditorActions怎么用?Java RunContentBuilder.addAdditionalConsoleEditorActions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.execution.runners.RunContentBuilder的用法示例。


在下文中一共展示了RunContentBuilder.addAdditionalConsoleEditorActions方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: attachToSession

import com.intellij.execution.runners.RunContentBuilder; //导入方法依赖的package包/类
private void attachToSession(@NotNull XDebugSessionImpl session) {
  for (XDebugView view : myViews) {
    session.addSessionListener(new XDebugViewSessionListener(view), myRunContentDescriptor);
  }

  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);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:62,代码来源:XDebugSessionTab.java

示例2: buildUi

import com.intellij.execution.runners.RunContentBuilder; //导入方法依赖的package包/类
@Override
public void buildUi(RunnerLayoutUi ui)
{
	int index = myExecutor == DefaultDebugExecutor.getDebugExecutorInstance() ? 1 : 0;

	((LayoutStateDefaults) ui).initTabDefaults(index, "Server", null);

	final Content consoleContent = ui.createContent(ExecutionConsole.CONSOLE_CONTENT_ID, getComponent(), "Output", null, getPreferredFocusableComponent());
	consoleContent.setCloseable(false);

	RunContentBuilder.addAdditionalConsoleEditorActions(this, consoleContent);

	ui.addContent(consoleContent, index, PlaceInGrid.center, false);


	final Content deploymentContent = ui.createContent("JavaEEDeployment", myDeploymentView.getComponent(), "Deployment", null, null);
	deploymentContent.setCloseable(false);
	ui.addContent(deploymentContent, index, PlaceInGrid.left, false);
}
 
开发者ID:consulo,项目名称:consulo-javaee,代码行数:20,代码来源:JavaEEDeploymentConsole.java

示例3: attachToSession

import com.intellij.execution.runners.RunContentBuilder; //导入方法依赖的package包/类
private void attachToSession(@Nonnull 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);
  }
}
 
开发者ID:consulo,项目名称:consulo,代码行数:62,代码来源:XDebugSessionTab.java


注:本文中的com.intellij.execution.runners.RunContentBuilder.addAdditionalConsoleEditorActions方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。