本文整理汇总了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;
}
示例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;
}
}
}
示例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;
}
示例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);
}
}
示例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));
}
示例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));
}
示例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);
}
示例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);
}
};
}
示例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();
}
示例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");
}
示例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));
}
示例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));
}
示例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);
}
示例14: XFullValueEvaluator
import com.intellij.xdebugger.XDebuggerBundle; //导入方法依赖的package包/类
protected XFullValueEvaluator() {
this(XDebuggerBundle.message("node.test.show.full.value"));
}
示例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;
}