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


Java XDebuggerExpressionEditor类代码示例

本文整理汇总了Java中com.intellij.xdebugger.impl.ui.XDebuggerExpressionEditor的典型用法代码示例。如果您正苦于以下问题:Java XDebuggerExpressionEditor类的具体用法?Java XDebuggerExpressionEditor怎么用?Java XDebuggerExpressionEditor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: CodeFragmentInputComponent

import com.intellij.xdebugger.impl.ui.XDebuggerExpressionEditor; //导入依赖的package包/类
public CodeFragmentInputComponent(final @NotNull Project project,
                                  @NotNull XDebuggerEditorsProvider editorsProvider,
                                  final @Nullable XSourcePosition sourcePosition,
                                  @Nullable XExpression statements,
                                  String splitterProportionKey,
                                  Disposable parentDisposable) {
  super(XDebuggerBundle.message("dialog.title.evaluate.code.fragment"));
  myMultilineEditor = new XDebuggerExpressionEditor(project, editorsProvider, "evaluateCodeFragment", sourcePosition,
                                                    statements != null ? statements : XExpressionImpl.EMPTY_CODE_FRAGMENT, true);
  myMainPanel = new JPanel(new BorderLayout());
  JPanel editorPanel = new JPanel(new BorderLayout());
  editorPanel.add(myMultilineEditor.getComponent(), BorderLayout.CENTER);
  DefaultActionGroup group = new DefaultActionGroup();
  group.add(new HistoryNavigationAction(false, IdeActions.ACTION_PREVIOUS_OCCURENCE, parentDisposable));
  group.add(new HistoryNavigationAction(true, IdeActions.ACTION_NEXT_OCCURENCE, parentDisposable));
  editorPanel.add(ActionManager.getInstance().createActionToolbar(ActionPlaces.UNKNOWN, group, false).getComponent(), BorderLayout.EAST);
  //myMainPanel.add(new JLabel(XDebuggerBundle.message("xdebugger.label.text.code.fragment")), BorderLayout.NORTH);
  myMainPanel.add(editorPanel, BorderLayout.CENTER);
  if (statements != null) {
    myMultilineEditor.setExpression(statements);
  }
  mySplitterProportionKey = splitterProportionKey;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:24,代码来源:CodeFragmentInputComponent.java

示例2: CodeFragmentInputComponent

import com.intellij.xdebugger.impl.ui.XDebuggerExpressionEditor; //导入依赖的package包/类
public CodeFragmentInputComponent(final @Nonnull Project project,
                                  @Nonnull XDebuggerEditorsProvider editorsProvider,
                                  final @Nullable XSourcePosition sourcePosition,
                                  @Nullable XExpression statements,
                                  String splitterProportionKey,
                                  Disposable parentDisposable) {
  super(XDebuggerBundle.message("dialog.title.evaluate.code.fragment"));
  myMultilineEditor = new XDebuggerExpressionEditor(project, editorsProvider, "evaluateCodeFragment", sourcePosition,
                                                    statements != null ? statements : XExpressionImpl.EMPTY_CODE_FRAGMENT, true, true, false);
  myMainPanel = new JPanel(new BorderLayout());
  JPanel editorPanel = new JPanel(new BorderLayout());
  editorPanel.add(myMultilineEditor.getComponent(), BorderLayout.CENTER);
  DefaultActionGroup group = new DefaultActionGroup();
  group.add(new HistoryNavigationAction(false, IdeActions.ACTION_PREVIOUS_OCCURENCE, parentDisposable));
  group.add(new HistoryNavigationAction(true, IdeActions.ACTION_NEXT_OCCURENCE, parentDisposable));
  editorPanel.add(ActionManager.getInstance().createActionToolbar(ActionPlaces.UNKNOWN, group, false).getComponent(), BorderLayout.EAST);
  //myMainPanel.add(new JLabel(XDebuggerBundle.message("xdebugger.label.text.code.fragment")), BorderLayout.NORTH);
  myMainPanel.add(editorPanel, BorderLayout.CENTER);
  if (statements != null) {
    myMultilineEditor.setExpression(statements);
  }
  mySplitterProportionKey = splitterProportionKey;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:24,代码来源:CodeFragmentInputComponent.java

示例3: ReturnExpressionDialog

import com.intellij.xdebugger.impl.ui.XDebuggerExpressionEditor; //导入依赖的package包/类
public ReturnExpressionDialog(@NotNull Project project,
                              XDebuggerEditorsProvider provider,
                              DebugProcessImpl process,
                              JavaStackFrame frame) {
  super(project);
  myProject = project;
  myEditorsProvider = provider;
  myProcess = process;
  myFrame = frame;
  myEditor = new XDebuggerExpressionEditor(myProject, myEditorsProvider, "forceReturnValue", myFrame.getSourcePosition(),
                                           XExpressionImpl.EMPTY_EXPRESSION, false);

  setTitle("Return Value");
  init();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:16,代码来源:ForceEarlyReturnAction.java


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