From 90c63c31f1d00c3fea190eb03c8123695e8d99e2 Mon Sep 17 00:00:00 2001 From: "Dmitry.Krasilschikov" Date: Mon, 3 Feb 2020 17:02:31 +0200 Subject: [PATCH] localize debugger hardcoded literals GitOrigin-RevId: 771e8b3604dd630f80c3d5185d173d342af888cf --- .../actions/AddSteppingFilterAction.java | 3 ++- .../actions/InterruptThreadAction.java | 2 +- .../actions/ObjectMarkupPropertiesDialog.java | 5 ++-- .../debugger/actions/ViewTextAction.java | 5 ++-- .../debugger/impl/DebuggerManagerImpl.java | 3 ++- .../debugger/impl/DebuggerUtilsEx.java | 2 +- .../action/CalculateRetainedSizeAction.java | 3 ++- .../memory/action/MemoryAgentActionBase.java | 3 ++- .../ui/ExpressionEditorWithHistory.java | 3 ++- .../debugger/memory/ui/InstancesView.java | 3 ++- .../debugger/memory/ui/InstancesWindow.java | 3 ++- .../debugger/memory/ui/StackFramePopup.java | 3 ++- .../settings/CaptureConfigurable.java | 14 ++++++----- .../debugger/ui/RunHotswapDialog.java | 2 +- .../AddWildcardBreakpointDialog.java | 7 +++--- .../CallTracingPropertiesPanel.java | 5 ++-- .../ui/breakpoints/MethodBreakpoint.java | 2 +- .../ui/tree/render/ImageObjectRenderer.java | 2 +- .../src/messages/DebuggerBundle.properties | 25 +++++++++++++++++++ 19 files changed, 67 insertions(+), 28 deletions(-) diff --git a/java/debugger/impl/src/com/intellij/debugger/actions/AddSteppingFilterAction.java b/java/debugger/impl/src/com/intellij/debugger/actions/AddSteppingFilterAction.java index 5212498160ef..dc07030e33fe 100644 --- a/java/debugger/impl/src/com/intellij/debugger/actions/AddSteppingFilterAction.java +++ b/java/debugger/impl/src/com/intellij/debugger/actions/AddSteppingFilterAction.java @@ -1,6 +1,7 @@ // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.debugger.actions; +import com.intellij.debugger.DebuggerBundle; import com.intellij.debugger.engine.DebugProcessImpl; import com.intellij.debugger.engine.evaluation.EvaluateException; import com.intellij.debugger.engine.events.DebuggerCommandImpl; @@ -37,7 +38,7 @@ public class AddSteppingFilterAction extends DebuggerAction { final Project project = e.getData(CommonDataKeys.PROJECT); ApplicationManager.getApplication().invokeLater(() -> { - String filter = Messages.showInputDialog(project, "", "Add Stepping Filter", null, name, null); + String filter = Messages.showInputDialog(project, "", DebuggerBundle.message("add.stepping.filter"), null, name, null); if (filter != null) { ClassFilter[] newFilters = ArrayUtil.append(DebuggerSettings.getInstance().getSteppingFilters(), new ClassFilter(filter)); DebuggerSettings.getInstance().setSteppingFilters(newFilters); diff --git a/java/debugger/impl/src/com/intellij/debugger/actions/InterruptThreadAction.java b/java/debugger/impl/src/com/intellij/debugger/actions/InterruptThreadAction.java index 5ba331c43893..c9f6bff38d25 100644 --- a/java/debugger/impl/src/com/intellij/debugger/actions/InterruptThreadAction.java +++ b/java/debugger/impl/src/com/intellij/debugger/actions/InterruptThreadAction.java @@ -55,7 +55,7 @@ public class InterruptThreadAction extends DebuggerAction{ if (unsupported) { final Project project = debugProcess.getProject(); XDebuggerManagerImpl.NOTIFICATION_GROUP - .createNotification("Thread operation 'interrupt' is not supported by VM", MessageType.INFO).notify(project); + .createNotification(DebuggerBundle.message("thread.operation.interrupt.is.not.supported.by.vm"), MessageType.INFO).notify(project); } } }); diff --git a/java/debugger/impl/src/com/intellij/debugger/actions/ObjectMarkupPropertiesDialog.java b/java/debugger/impl/src/com/intellij/debugger/actions/ObjectMarkupPropertiesDialog.java index d243fbc3951c..4b44afadd5c3 100644 --- a/java/debugger/impl/src/com/intellij/debugger/actions/ObjectMarkupPropertiesDialog.java +++ b/java/debugger/impl/src/com/intellij/debugger/actions/ObjectMarkupPropertiesDialog.java @@ -15,6 +15,7 @@ */ package com.intellij.debugger.actions; +import com.intellij.debugger.DebuggerBundle; import com.intellij.ide.util.PropertiesComponent; import com.intellij.openapi.ui.ex.MultiLineLabel; import com.intellij.xdebugger.impl.ui.tree.ValueMarkerPresentationDialogBase; @@ -44,8 +45,8 @@ public class ObjectMarkupPropertiesDialog extends ValueMarkerPresentationDialogB @NotNull Collection markups) { super(parent, defaultText, markups); mySuggestAdditionalMarkup = suggestAdditionalMarkup; - myDescriptionLabel.setText("If the value is referenced by a constant field of an abstract class,\n" + - "IDEA could additionally mark all values referenced from this class with the names of referencing fields."); + myDescriptionLabel.setText(DebuggerBundle.message( + "value.is.referenced.by.text")); myCbMarkAdditionalFields.setSelected(PropertiesComponent.getInstance().getBoolean(MARK_ALL_REFERENCED_VALUES_KEY, MARK_ALL_REFERENCED_VALUES_DEFAULT_VALUE)); init(); } diff --git a/java/debugger/impl/src/com/intellij/debugger/actions/ViewTextAction.java b/java/debugger/impl/src/com/intellij/debugger/actions/ViewTextAction.java index c5610c5e882a..4bec30cb4617 100644 --- a/java/debugger/impl/src/com/intellij/debugger/actions/ViewTextAction.java +++ b/java/debugger/impl/src/com/intellij/debugger/actions/ViewTextAction.java @@ -1,6 +1,7 @@ // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.debugger.actions; +import com.intellij.debugger.DebuggerBundle; import com.intellij.debugger.engine.DebuggerUtils; import com.intellij.debugger.engine.JavaValue; import com.intellij.idea.ActionsBundle; @@ -93,8 +94,8 @@ public class ViewTextAction extends XFetchValueActionBase { super(project, false); myStringNode = stringNode; setModal(false); - setCancelButtonText("Close"); - setOKButtonText("Set"); + setCancelButtonText(DebuggerBundle.message("close")); + setOKButtonText(DebuggerBundle.message("set")); getOKAction().setEnabled(false); setCrossClosesWindow(true); diff --git a/java/debugger/impl/src/com/intellij/debugger/impl/DebuggerManagerImpl.java b/java/debugger/impl/src/com/intellij/debugger/impl/DebuggerManagerImpl.java index 34126a955710..0fae756b996c 100644 --- a/java/debugger/impl/src/com/intellij/debugger/impl/DebuggerManagerImpl.java +++ b/java/debugger/impl/src/com/intellij/debugger/impl/DebuggerManagerImpl.java @@ -2,6 +2,7 @@ package com.intellij.debugger.impl; import com.intellij.debugger.DebugEnvironment; +import com.intellij.debugger.DebuggerBundle; import com.intellij.debugger.DebuggerManagerEx; import com.intellij.debugger.NameMapper; import com.intellij.debugger.engine.*; @@ -211,7 +212,7 @@ public class DebuggerManagerImpl extends DebuggerManagerEx implements Persistent ProgressManager.getInstance().runProcessWithProgressSynchronously(() -> { ProgressManager.getInstance().getProgressIndicator().setIndeterminate(true); debugProcess.waitFor(10000); - }, "Waiting For Debugger Response", false, debugProcess.getProject()); + }, DebuggerBundle.message("waiting.for.debugger.response"), false, debugProcess.getProject()); } else { debugProcess.waitFor(10000); diff --git a/java/debugger/impl/src/com/intellij/debugger/impl/DebuggerUtilsEx.java b/java/debugger/impl/src/com/intellij/debugger/impl/DebuggerUtilsEx.java index 2c466ab5040d..80d0114d7c05 100644 --- a/java/debugger/impl/src/com/intellij/debugger/impl/DebuggerUtilsEx.java +++ b/java/debugger/impl/src/com/intellij/debugger/impl/DebuggerUtilsEx.java @@ -347,7 +347,7 @@ public abstract class DebuggerUtilsEx extends DebuggerUtils { final Content content = ui.createContent(id + " " + myThreadDumpsCount, panel, id, null, null); content.putUserData(RunnerContentUi.LIGHTWEIGHT_CONTENT_MARKER, Boolean.TRUE); content.setCloseable(true); - content.setDescription("Thread Dump"); + content.setDescription(DebuggerBundle.message("thread.dump")); ui.addContent(content); ui.selectAndFocus(content, true, true); myThreadDumpsCount++; diff --git a/java/debugger/impl/src/com/intellij/debugger/memory/action/CalculateRetainedSizeAction.java b/java/debugger/impl/src/com/intellij/debugger/memory/action/CalculateRetainedSizeAction.java index 50dae2990400..4971e09bb706 100644 --- a/java/debugger/impl/src/com/intellij/debugger/memory/action/CalculateRetainedSizeAction.java +++ b/java/debugger/impl/src/com/intellij/debugger/memory/action/CalculateRetainedSizeAction.java @@ -1,6 +1,7 @@ // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.debugger.memory.action; +import com.intellij.debugger.DebuggerBundle; import com.intellij.debugger.engine.evaluation.EvaluateException; import com.intellij.debugger.engine.evaluation.EvaluationContextImpl; import com.intellij.debugger.memory.agent.MemoryAgent; @@ -20,7 +21,7 @@ public class CalculateRetainedSizeAction extends MemoryAgentActionBase { MemoryAgent memoryAgent = MemoryAgent.get(evaluationContext.getDebugProcess()); long size = memoryAgent.estimateObjectSize(evaluationContext, reference); ApplicationManager.getApplication().invokeLater( - () -> new MessageDialog(node.getTree().getProject(), String.valueOf(size), "Size of the Object", + () -> new MessageDialog(node.getTree().getProject(), String.valueOf(size), DebuggerBundle.message("size.of.the.object"), ArrayUtilRt.EMPTY_STRING_ARRAY, 0, null, false) .show()); } diff --git a/java/debugger/impl/src/com/intellij/debugger/memory/action/MemoryAgentActionBase.java b/java/debugger/impl/src/com/intellij/debugger/memory/action/MemoryAgentActionBase.java index 0fc11faa050e..d57cac4d439b 100644 --- a/java/debugger/impl/src/com/intellij/debugger/memory/action/MemoryAgentActionBase.java +++ b/java/debugger/impl/src/com/intellij/debugger/memory/action/MemoryAgentActionBase.java @@ -1,6 +1,7 @@ // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.debugger.memory.action; +import com.intellij.debugger.DebuggerBundle; import com.intellij.debugger.engine.DebugProcessImpl; import com.intellij.debugger.engine.JavaDebugProcess; import com.intellij.debugger.engine.SuspendContextImpl; @@ -36,7 +37,7 @@ public abstract class MemoryAgentActionBase extends DebuggerTreeAction { perform(evaluationContext, reference, node); } catch (EvaluateException ex) { - XDebuggerManagerImpl.NOTIFICATION_GROUP.createNotification("Action failed", NotificationType.ERROR); + XDebuggerManagerImpl.NOTIFICATION_GROUP.createNotification(DebuggerBundle.message("action.failed"), NotificationType.ERROR); } } diff --git a/java/debugger/impl/src/com/intellij/debugger/memory/ui/ExpressionEditorWithHistory.java b/java/debugger/impl/src/com/intellij/debugger/memory/ui/ExpressionEditorWithHistory.java index 8122b2c2657d..c05ff4fbf4dd 100644 --- a/java/debugger/impl/src/com/intellij/debugger/memory/ui/ExpressionEditorWithHistory.java +++ b/java/debugger/impl/src/com/intellij/debugger/memory/ui/ExpressionEditorWithHistory.java @@ -2,6 +2,7 @@ package com.intellij.debugger.memory.ui; import com.intellij.codeInsight.lookup.LookupManager; +import com.intellij.debugger.DebuggerBundle; import com.intellij.debugger.engine.DebuggerUtils; import com.intellij.openapi.Disposable; import com.intellij.openapi.actionSystem.AnAction; @@ -36,7 +37,7 @@ class ExpressionEditorWithHistory extends XDebuggerExpressionEditor { super(project, debuggerEditorsProvider, HISTORY_ID_PREFIX + className, null, XExpressionImpl.EMPTY_EXPRESSION, false, true, true); - new AnAction("InstancesWindow.ShowHistory") { + new AnAction(DebuggerBundle.message("instances.window.show.history")) { @Override public void actionPerformed(@NotNull AnActionEvent e) { showHistory(); diff --git a/java/debugger/impl/src/com/intellij/debugger/memory/ui/InstancesView.java b/java/debugger/impl/src/com/intellij/debugger/memory/ui/InstancesView.java index 5dc40b04f450..857d62596bb6 100644 --- a/java/debugger/impl/src/com/intellij/debugger/memory/ui/InstancesView.java +++ b/java/debugger/impl/src/com/intellij/debugger/memory/ui/InstancesView.java @@ -1,6 +1,7 @@ // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.debugger.memory.ui; +import com.intellij.debugger.DebuggerBundle; import com.intellij.debugger.DebuggerManager; import com.intellij.debugger.engine.DebugProcessImpl; import com.intellij.debugger.engine.DebuggerUtils; @@ -69,7 +70,7 @@ class InstancesView extends InstancesViewBase { private final MyNodeManager myNodeManager; private final Consumer myWarningMessageConsumer; - private final JButton myFilterButton = new JButton("Filter"); + private final JButton myFilterButton = new JButton(DebuggerBundle.message("filter")); private final FilteringProgressView myProgress = new FilteringProgressView(); private final Object myFilteringTaskLock = new Object(); diff --git a/java/debugger/impl/src/com/intellij/debugger/memory/ui/InstancesWindow.java b/java/debugger/impl/src/com/intellij/debugger/memory/ui/InstancesWindow.java index 629aeedd95fb..00deb5c8b085 100644 --- a/java/debugger/impl/src/com/intellij/debugger/memory/ui/InstancesWindow.java +++ b/java/debugger/impl/src/com/intellij/debugger/memory/ui/InstancesWindow.java @@ -1,6 +1,7 @@ // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.debugger.memory.ui; +import com.intellij.debugger.DebuggerBundle; import com.intellij.openapi.util.Disposer; import com.intellij.util.ui.JBDimension; import com.intellij.xdebugger.XDebugSession; @@ -46,6 +47,6 @@ public class InstancesWindow extends InstancesWindowBase { @Override protected Action @NotNull [] createActions() { - return new Action[]{new DialogWrapperExitAction("Close", CLOSE_EXIT_CODE)}; + return new Action[]{new DialogWrapperExitAction(DebuggerBundle.message("close"), CLOSE_EXIT_CODE)}; } } diff --git a/java/debugger/impl/src/com/intellij/debugger/memory/ui/StackFramePopup.java b/java/debugger/impl/src/com/intellij/debugger/memory/ui/StackFramePopup.java index ff063c9d68ac..745fff9feb11 100644 --- a/java/debugger/impl/src/com/intellij/debugger/memory/ui/StackFramePopup.java +++ b/java/debugger/impl/src/com/intellij/debugger/memory/ui/StackFramePopup.java @@ -15,6 +15,7 @@ */ package com.intellij.debugger.memory.ui; +import com.intellij.debugger.DebuggerBundle; import com.intellij.debugger.engine.DebugProcessImpl; import com.intellij.debugger.memory.utils.StackFrameItem; import com.intellij.openapi.ui.popup.JBPopup; @@ -29,7 +30,7 @@ public class StackFramePopup { StackFrameList list = new StackFrameList(debugProcess); list.setFrameItems(stack, () -> DebuggerUIUtil.invokeLater(() -> { JBPopup popup = JBPopupFactory.getInstance().createListPopupBuilder(list) - .setTitle("Select stack frame") + .setTitle(DebuggerBundle.message("select.stack.frame")) .setAutoSelectIfEmpty(true) .setResizable(false) .setItemChoosenCallback(() -> list.navigateToSelectedValue(true)) diff --git a/java/debugger/impl/src/com/intellij/debugger/settings/CaptureConfigurable.java b/java/debugger/impl/src/com/intellij/debugger/settings/CaptureConfigurable.java index 2ab3ef0a8a32..5942d992ddef 100644 --- a/java/debugger/impl/src/com/intellij/debugger/settings/CaptureConfigurable.java +++ b/java/debugger/impl/src/com/intellij/debugger/settings/CaptureConfigurable.java @@ -189,7 +189,7 @@ public class CaptureConfigurable implements SearchableConfigurable, NoScroll { } }); - new DumbAwareAction("Toggle") { + new DumbAwareAction(DebuggerBundle.message("toggle")) { @Override public void update(@NotNull AnActionEvent e) { e.getPresentation().setEnabled(table.getSelectedRowCount() == 1 && !table.isEditing()); @@ -219,8 +219,8 @@ public class CaptureConfigurable implements SearchableConfigurable, NoScroll { return FileTypeRegistry.getInstance().isFileOfType(file, StdFileTypes.XML); } }; - descriptor.setDescription("Please select a file to import."); - descriptor.setTitle("Import Capture Points"); + descriptor.setDescription(DebuggerBundle.message("please.select.a.file.to.import")); + descriptor.setTitle(DebuggerBundle.message("import.capture.points")); VirtualFile[] files = FileChooser.chooseFiles(descriptor, e.getProject(), null); if (ArrayUtil.isEmpty(files)) return; @@ -236,7 +236,8 @@ public class CaptureConfigurable implements SearchableConfigurable, NoScroll { } catch (Exception ex) { final String msg = ex.getLocalizedMessage(); - Messages.showErrorDialog(e.getProject(), msg != null && msg.length() > 0 ? msg : ex.toString(), "Export Failed"); + Messages.showErrorDialog(e.getProject(), msg != null && msg.length() > 0 ? msg : ex.toString(), + DebuggerBundle.message("export.failed")); } } } @@ -247,7 +248,7 @@ public class CaptureConfigurable implements SearchableConfigurable, NoScroll { @Override public void actionPerformed(@NotNull final AnActionEvent e) { VirtualFileWrapper wrapper = FileChooserFactory.getInstance() - .createSaveFileDialog(new FileSaverDescriptor("Export Selected Capture Points to File...", "", "xml"), e.getProject()) + .createSaveFileDialog(new FileSaverDescriptor(DebuggerBundle.message("export.selected.capture.points.to.file"), "", "xml"), e.getProject()) .save(null, null); if (wrapper == null) return; @@ -267,7 +268,8 @@ public class CaptureConfigurable implements SearchableConfigurable, NoScroll { } catch (Exception ex) { final String msg = ex.getLocalizedMessage(); - Messages.showErrorDialog(e.getProject(), msg != null && msg.length() > 0 ? msg : ex.toString(), "Export Failed"); + Messages.showErrorDialog(e.getProject(), msg != null && msg.length() > 0 ? msg : ex.toString(), + DebuggerBundle.message("export.failed")); } } diff --git a/java/debugger/impl/src/com/intellij/debugger/ui/RunHotswapDialog.java b/java/debugger/impl/src/com/intellij/debugger/ui/RunHotswapDialog.java index 4c44a3c9a593..686b4283c26b 100644 --- a/java/debugger/impl/src/com/intellij/debugger/ui/RunHotswapDialog.java +++ b/java/debugger/impl/src/com/intellij/debugger/ui/RunHotswapDialog.java @@ -97,7 +97,7 @@ public class RunHotswapDialog extends OptionsDialog { label.setIcon(icon); label.setIconTextGap(7); if (myDisplayHangWarning) { - final JLabel warningLabel = new JLabel("WARNING! " + DebuggerBundle.message("hotswap.dialog.hang.warning")); + final JLabel warningLabel = new JLabel(DebuggerBundle.message("text.warning.0", DebuggerBundle.message("hotswap.dialog.hang.warning"))); warningLabel.setUI(new MultiLineLabelUI()); panel.add(warningLabel, BorderLayout.SOUTH); } diff --git a/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/AddWildcardBreakpointDialog.java b/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/AddWildcardBreakpointDialog.java index 8e0ea82b4d64..7825181c1654 100644 --- a/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/AddWildcardBreakpointDialog.java +++ b/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/AddWildcardBreakpointDialog.java @@ -15,6 +15,7 @@ */ package com.intellij.debugger.ui.breakpoints; +import com.intellij.debugger.DebuggerBundle; import com.intellij.openapi.project.Project; import com.intellij.openapi.ui.DialogWrapper; import com.intellij.openapi.ui.Messages; @@ -31,18 +32,18 @@ public class AddWildcardBreakpointDialog extends DialogWrapper { public AddWildcardBreakpointDialog(Project project) { super(project, true); - setTitle("Add Method Breakpoint"); + setTitle(DebuggerBundle.message("add.method.breakpoint")); init(); } @Override protected void doOKAction() { if (getClassPattern().length() == 0) { - Messages.showErrorDialog(myPanel, "Class pattern not specified"); + Messages.showErrorDialog(myPanel, DebuggerBundle.message("class.pattern.not.specified")); return; } if (getMethodName().length() == 0) { - Messages.showErrorDialog(myPanel, "Method name not specified"); + Messages.showErrorDialog(myPanel, DebuggerBundle.message("method.name.not.specified")); return; } super.doOKAction(); diff --git a/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/CallTracingPropertiesPanel.java b/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/CallTracingPropertiesPanel.java index dadd917c8724..6a2381950f26 100644 --- a/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/CallTracingPropertiesPanel.java +++ b/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/CallTracingPropertiesPanel.java @@ -2,6 +2,7 @@ package com.intellij.debugger.ui.breakpoints; +import com.intellij.debugger.DebuggerBundle; import com.intellij.debugger.settings.TraceSettings; import com.intellij.openapi.project.Project; import com.intellij.openapi.ui.DialogWrapper; @@ -32,7 +33,7 @@ public class CallTracingPropertiesPanel extends XBreakpointCustomPropertiesPanel public JComponent getComponent() { myStartTracing = new JBCheckBox("Start"); myEndTracing = new JBCheckBox("Stop"); - JButton filters = new JButton("Filters..."); + JButton filters = new JButton(DebuggerBundle.message("filters")); //DialogUtil.registerMnemonic(myStartTracing); //DialogUtil.registerMnemonic(myEndTracing); @@ -67,7 +68,7 @@ public class CallTracingPropertiesPanel extends XBreakpointCustomPropertiesPanel EditClassFiltersDialog dialog = new EditClassFiltersDialog(myProject); TraceSettings traceSettings = TraceSettings.getInstance(); dialog.setFilters(traceSettings.getClassFilters(), traceSettings.getClassExclusionFilters()); - dialog.setTitle("Tracing Class Filters"); + dialog.setTitle(DebuggerBundle.message("tracing.class.filters")); dialog.show(); if (dialog.getExitCode() == DialogWrapper.OK_EXIT_CODE) { traceSettings.setClassFilters(dialog.getFilters()); diff --git a/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/MethodBreakpoint.java b/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/MethodBreakpoint.java index cf6f49962040..4c4aab438fb9 100644 --- a/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/MethodBreakpoint.java +++ b/java/debugger/impl/src/com/intellij/debugger/ui/breakpoints/MethodBreakpoint.java @@ -134,7 +134,7 @@ public class MethodBreakpoint extends BreakpointWithHighlighter { ProgressWindow progress = - new ProgressWindow(true, false, debugProcess.getProject(), "Cancel emulation"); + new ProgressWindow(true, false, debugProcess.getProject(), DebuggerBundle.message("cancel.emulation")); progress.setDelayInMillis(2000); indicatorRef.set(progress); }); diff --git a/java/debugger/impl/src/com/intellij/debugger/ui/tree/render/ImageObjectRenderer.java b/java/debugger/impl/src/com/intellij/debugger/ui/tree/render/ImageObjectRenderer.java index e3dddfcf4866..1b080538c4aa 100644 --- a/java/debugger/impl/src/com/intellij/debugger/ui/tree/render/ImageObjectRenderer.java +++ b/java/debugger/impl/src/com/intellij/debugger/ui/tree/render/ImageObjectRenderer.java @@ -48,7 +48,7 @@ class ImageObjectRenderer extends CompoundReferenceRenderer implements FullValue } static JComponent createIconViewer(@Nullable Icon icon) { - if (icon == null) return new JLabel("No data", SwingConstants.CENTER); + if (icon == null) return new JLabel(DebuggerBundle.message("no.data"), SwingConstants.CENTER); final int w = icon.getIconWidth(); final int h = icon.getIconHeight(); final BufferedImage image = GraphicsEnvironment.getLocalGraphicsEnvironment() diff --git a/resources-en/src/messages/DebuggerBundle.properties b/resources-en/src/messages/DebuggerBundle.properties index 7b5959bc9794..b04694a7230a 100644 --- a/resources-en/src/messages/DebuggerBundle.properties +++ b/resources-en/src/messages/DebuggerBundle.properties @@ -538,3 +538,28 @@ action.AnActionButton.text.export=Export action.AnActionButton.description.export=Export action.TurnOffDfaAssist.text=Turn Off Data Flow Assist action.TurnOffDfaAssist.description=Switch off data flow aided debugging for this session +text.warning.0=WARNING! {0} +filter=Filter +no.data=No data +close=Close +instances.window.show.history=InstancesWindow.ShowHistory +select.stack.frame=Select stack frame +set=Set +tracing.class.filters=Tracing Class Filters +filters=Filters... +export.failed=Export Failed +export.selected.capture.points.to.file=Export Selected Capture Points to File... +import.capture.points=Import Capture Points +please.select.a.file.to.import=Please select a file to import. +toggle=Toggle +waiting.for.debugger.response=Waiting For Debugger Response +thread.dump=Thread Dump +cancel.emulation=Cancel emulation +thread.operation.interrupt.is.not.supported.by.vm=Thread operation 'interrupt' is not supported by VM +size.of.the.object=Size of the Object +add.stepping.filter=Add Stepping Filter +method.name.not.specified=Method name not specified +class.pattern.not.specified=Class pattern not specified +add.method.breakpoint=Add Method Breakpoint +value.is.referenced.by.text=If the value is referenced by a constant field of an abstract class,\nIDEA could additionally mark all values referenced from this class with the names of referencing fields. +action.failed=Action failed