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


Java XDebuggerBundle.message方法代码示例

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


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

示例1: CodeFragmentInputComponent

import com.intellij.xdebugger.XDebuggerBundle; //导入方法依赖的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: getCurrentStateMessage

import com.intellij.xdebugger.XDebuggerBundle; //导入方法依赖的package包/类
@Override
public String getCurrentStateMessage()
{
	if(myVm == null)
	{
		return XDebuggerBundle.message("debugger.state.message.disconnected");
	}
	else
	{
		if(myVm.isAttached())
		{
			return "Attached";
		}
		else
		{
			String disconnectReason = myVm.getDisconnectReason();
			if(disconnectReason == null)
			{
				return XDebuggerBundle.message("debugger.state.message.disconnected");
			}
			return "Disconnected: " + disconnectReason;
		}
	}
}
 
开发者ID:consulo,项目名称:consulo-javascript,代码行数:25,代码来源:V8DebugProcess.java

示例3: CodeFragmentInputComponent

import com.intellij.xdebugger.XDebuggerBundle; //导入方法依赖的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

示例4: errorOccurred

import com.intellij.xdebugger.XDebuggerBundle; //导入方法依赖的package包/类
@Override
public void errorOccurred(@NotNull String errorMessage) {
  try {
    String message = XDebuggerBundle.message("load.value.task.error", errorMessage);
    XDebugSessionImpl.NOTIFICATION_GROUP.createNotification(message, NotificationType.ERROR).notify(myNode.getTree().getProject());
  }
  finally {
    evaluationComplete(errorMessage);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:HeadlessValueEvaluationCallback.java

示例5: DebuggerSessionTabBase

import com.intellij.xdebugger.XDebuggerBundle; //导入方法依赖的package包/类
public DebuggerSessionTabBase(@NotNull Project project, @NotNull String runnerId, @NotNull String sessionName, @NotNull GlobalSearchScope searchScope) {
  super(project, searchScope, runnerId, XDebuggerBundle.message("xdebugger.default.content.title"), sessionName);

  myUi.getDefaults()
    .initTabDefaults(0, XDebuggerBundle.message("xdebugger.debugger.tab.title"), null)
    .initFocusContent(DebuggerContentInfo.FRAME_CONTENT, XDebuggerUIConstants.LAYOUT_VIEW_BREAKPOINT_CONDITION)
    .initFocusContent(DebuggerContentInfo.CONSOLE_CONTENT, LayoutViewOptions.STARTUP, new LayoutAttractionPolicy.FocusOnce(false));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:DebuggerSessionTabBase.java

示例6: loadProperties

import com.intellij.xdebugger.XDebuggerBundle; //导入方法依赖的package包/类
public void loadProperties() {
  for (XBreakpointPropertiesSubPanel<B> panel : mySubPanels) {
    panel.loadProperties();
  }

  if (myConditionComboBox != null) {
    XExpression condition = myBreakpoint.getConditionExpressionInt();
    myConditionComboBox.setExpression(condition);
    boolean hideCheckbox = !myShowAllOptions && condition == null;
    myConditionEnabledCheckbox.setSelected(hideCheckbox || (myBreakpoint.isConditionEnabled() && condition != null));
    myConditionEnabledPanel.removeAll();
    if (hideCheckbox) {
      JBLabel label = new JBLabel(XDebuggerBundle.message("xbreakpoints.condition.checkbox"));
      label.setBorder(JBUI.Borders.empty(0, 4));
      myConditionEnabledPanel.add(label);
    }
    else {
      myConditionEnabledPanel.add(myConditionEnabledCheckbox);
    }

    onCheckboxChanged();
  }
  
  for (XBreakpointCustomPropertiesPanel<B> customPanel : myCustomPanels) {
    customPanel.loadFrom(myBreakpoint);
  }
  myEnabledCheckbox.setSelected(myBreakpoint.isEnabled());
  myBreakpointNameLabel.setText(XBreakpointUtil.getShortText(myBreakpoint));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:30,代码来源:XLightBreakpointPropertiesPanel.java

示例7: CodeFragmentInputComponent

import com.intellij.xdebugger.XDebuggerBundle; //导入方法依赖的package包/类
public CodeFragmentInputComponent(final @NotNull Project project, @NotNull XDebuggerEditorsProvider editorsProvider,
                                  final @Nullable XSourcePosition sourcePosition, @Nullable String statements, Disposable parentDisposable) {
  super(XDebuggerBundle.message("dialog.title.evaluate.code.fragment"));
  myMultilineEditor = new XDebuggerMultilineEditor(project, editorsProvider, "evaluateCodeFragment", sourcePosition, statements != null ? statements : "");
  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);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:15,代码来源:CodeFragmentInputComponent.java

示例8: createSetRoot

import com.intellij.xdebugger.XDebuggerBundle; //导入方法依赖的package包/类
private AnAction createSetRoot() {
  final String title = XDebuggerBundle.message("xdebugger.popup.value.tree.set.root.action.tooltip");
  return new AnAction(title, title, AllIcons.Modules.UnmarkWebroot) {
    public void actionPerformed(AnActionEvent e) {
      final TreePath path = myTree.getSelectionPath();
      if (path == null) return;
      final Object node = path.getLastPathComponent();
      setNodeAsRoot(node);
    }
  };
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:12,代码来源:AbstractValueHintTreeComponent.java

示例9: ExpressionInputComponent

import com.intellij.xdebugger.XDebuggerBundle; //导入方法依赖的package包/类
public ExpressionInputComponent(final @NotNull Project project, @NotNull XDebuggerEditorsProvider editorsProvider, final @Nullable XSourcePosition sourcePosition,
                                @Nullable String expression) {
  super(XDebuggerBundle.message("xdebugger.dialog.title.evaluate.expression"));
  myMainPanel = new JPanel(new BorderLayout());
  myMainPanel.add(new JLabel(XDebuggerBundle.message("xdebugger.evaluate.label.expression")), BorderLayout.WEST);
  myExpressionComboBox = new XDebuggerExpressionComboBox(project, editorsProvider, "evaluateExpression", sourcePosition);
  myExpressionComboBox.getComboBox().setMinimumAndPreferredWidth(250);
  myMainPanel.add(myExpressionComboBox.getComponent(), BorderLayout.CENTER);
  if (expression != null) {
    myExpressionComboBox.setText(expression);
  }
  myExpressionComboBox.selectAll();
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:14,代码来源:ExpressionInputComponent.java

示例10: getCurrentStateMessage

import com.intellij.xdebugger.XDebuggerBundle; //导入方法依赖的package包/类
@Override
public String getCurrentStateMessage()
{
	if(myDebugThread.isConnected())
	{
		return "Connected to " + myDebugConnectionInfo.getHost() + ":" + myDebugConnectionInfo.getPort();
	}
	return XDebuggerBundle.message("debugger.state.message.disconnected");
}
 
开发者ID:consulo,项目名称:consulo-dotnet,代码行数:10,代码来源:MicrosoftDebugProcess.java

示例11: loadProperties

import com.intellij.xdebugger.XDebuggerBundle; //导入方法依赖的package包/类
public void loadProperties() {
  for (XBreakpointPropertiesSubPanel panel : mySubPanels) {
    panel.loadProperties();
  }

  if (myConditionComboBox != null) {
    XExpression condition = myBreakpoint.getConditionExpressionInt();
    myConditionComboBox.setExpression(condition);
    boolean hideCheckbox = !myShowAllOptions && condition == null;
    myConditionEnabledCheckbox.setSelected(hideCheckbox || (myBreakpoint.isConditionEnabled() && condition != null));
    myConditionEnabledPanel.removeAll();
    if (hideCheckbox) {
      JBLabel label = new JBLabel(XDebuggerBundle.message("xbreakpoints.condition.checkbox"));
      label.setBorder(JBUI.Borders.empty(0, 4));
      label.setLabelFor(myConditionComboBox.getComboBox());
      myConditionEnabledPanel.add(label);
    }
    else {
      myConditionEnabledPanel.add(myConditionEnabledCheckbox);
    }

    onCheckboxChanged();
  }

  for (XBreakpointCustomPropertiesPanel customPanel : myCustomPanels) {
    customPanel.loadFrom(myBreakpoint);
  }
  myEnabledCheckbox.setSelected(myBreakpoint.isEnabled());
  myBreakpointNameLabel.setText(XBreakpointUtil.getShortText(myBreakpoint));
}
 
开发者ID:consulo,项目名称:consulo,代码行数:31,代码来源:XLightBreakpointPropertiesPanel.java

示例12: DebuggerSessionTabBase

import com.intellij.xdebugger.XDebuggerBundle; //导入方法依赖的package包/类
public DebuggerSessionTabBase(@Nonnull Project project, @Nonnull String runnerId, @Nonnull String sessionName, @Nonnull GlobalSearchScope searchScope) {
  super(project, searchScope, runnerId, XDebuggerBundle.message("xdebugger.default.content.title"), sessionName);

  myUi.getDefaults().initTabDefaults(0, XDebuggerBundle.message("xdebugger.debugger.tab.title"), null)
          .initFocusContent(DebuggerContentInfo.FRAME_CONTENT, XDebuggerUIConstants.LAYOUT_VIEW_BREAKPOINT_CONDITION)
          .initFocusContent(DebuggerContentInfo.CONSOLE_CONTENT, LayoutViewOptions.STARTUP, new LayoutAttractionPolicy.FocusOnce(false));
}
 
开发者ID:consulo,项目名称:consulo,代码行数:8,代码来源:DebuggerSessionTabBase.java

示例13: fileLineDisplayText

import com.intellij.xdebugger.XDebuggerBundle; //导入方法依赖的package包/类
private static String fileLineDisplayText(String path, int line) {
  return XDebuggerBundle.message("xbreakpoint.default.display.text", line + 1, path);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:XLineBreakpointType.java

示例14: XFullValueEvaluator

import com.intellij.xdebugger.XDebuggerBundle; //导入方法依赖的package包/类
protected XFullValueEvaluator() {
  this(XDebuggerBundle.message("node.test.show.full.value"));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:XFullValueEvaluator.java

示例15: SetAsRootAction

import com.intellij.xdebugger.XDebuggerBundle; //导入方法依赖的package包/类
public SetAsRootAction(Tree tree) {
  super(XDebuggerBundle.message("xdebugger.popup.value.tree.set.root.action.tooltip"),
        XDebuggerBundle.message("xdebugger.popup.value.tree.set.root.action.tooltip"), AllIcons.Modules.UnmarkWebroot);
  myTree = tree;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:DebuggerTreeWithHistoryContainer.java


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