mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-13 15:52:01 +07:00
IDEA-232047 Debugger : extract to bundles
GitOrigin-RevId: 50ee91874b3537415940d5b0deefb9705b9bc55e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8f1172091f
commit
a302cb9d26
@@ -355,7 +355,7 @@ public class JavaDebugProcess extends XDebugProcess {
|
||||
final ClassesFilteredView classesFilteredView = new ClassesFilteredView(session, process, tracker);
|
||||
|
||||
final Content memoryViewContent =
|
||||
ui.createContent(MemoryViewManager.MEMORY_VIEW_CONTENT, classesFilteredView, "Memory",
|
||||
ui.createContent(MemoryViewManager.MEMORY_VIEW_CONTENT, classesFilteredView, DebuggerBundle.message("memory.toolwindow.title"),
|
||||
null, classesFilteredView.getDefaultFocusedComponent());
|
||||
|
||||
memoryViewContent.setCloseable(false);
|
||||
@@ -388,7 +388,7 @@ public class JavaDebugProcess extends XDebugProcess {
|
||||
|
||||
DebugProcessImpl process = myJavaSession.getProcess();
|
||||
OverheadView monitor = new OverheadView(process);
|
||||
Content overheadContent = ui.createContent("OverheadMonitor", monitor, "Overhead", null, monitor.getDefaultFocusedComponent());
|
||||
Content overheadContent = ui.createContent("OverheadMonitor", monitor, DebuggerBundle.message("overhead.toolwindow.title"), null, monitor.getDefaultFocusedComponent());
|
||||
|
||||
monitor.setBouncer(() -> ui.setBouncing(overheadContent, true));
|
||||
|
||||
|
||||
@@ -143,7 +143,7 @@ public class DebuggerDataViewsConfigurable implements SearchableConfigurable {
|
||||
|
||||
|
||||
final JPanel showPanel = new JPanel(new GridBagLayout());
|
||||
showPanel.setBorder(IdeBorderFactory.createTitledBorder("Show"));
|
||||
showPanel.setBorder(IdeBorderFactory.createTitledBorder(DebuggerBundle.message("debugger.data.views.configurable.show.title")));
|
||||
|
||||
showPanel.add(myCbShowDeclaredType, new GridBagConstraints(0, RELATIVE, 1, 1, 0.0, 0.0, WEST, NONE, JBUI.emptyInsets(), 0, 0));
|
||||
showPanel.add(myCbShowObjectId, new GridBagConstraints(0, RELATIVE, 1, 1, 0.0, 0.0, WEST, NONE, JBUI.insetsTop(4), 0, 0));
|
||||
|
||||
@@ -207,3 +207,6 @@ memory.unable.to.get.instances.of.class=Unable to get instances of class {0}
|
||||
memory.instances.close.text=Close
|
||||
|
||||
threads.list.threads.not.available=Threads are not available
|
||||
data.views.configurable.panel.title=Editor
|
||||
hide.library.frames.tooltip=Hide Frames from Libraries
|
||||
show.all.frames.tooltip=Show All Frames
|
||||
@@ -7,6 +7,7 @@ import com.intellij.openapi.actionSystem.Presentation;
|
||||
import com.intellij.openapi.actionSystem.ToggleAction;
|
||||
import com.intellij.openapi.actionSystem.Toggleable;
|
||||
import com.intellij.xdebugger.XDebugSession;
|
||||
import com.intellij.xdebugger.XDebuggerBundle;
|
||||
import com.intellij.xdebugger.impl.XDebuggerUtilImpl;
|
||||
import com.intellij.xdebugger.impl.settings.XDebuggerSettingManagerImpl;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -17,8 +18,6 @@ final class ShowLibraryFramesAction extends ToggleAction {
|
||||
private static final String IS_LIBRARY_FRAME_FILTER_SUPPORTED = "isLibraryFrameFilterSupported";
|
||||
|
||||
private volatile boolean myShouldShow;
|
||||
private static final String ourTextWhenShowIsOn = "Hide Frames from Libraries";
|
||||
private static final String ourTextWhenShowIsOff = "Show All Frames";
|
||||
|
||||
ShowLibraryFramesAction() {
|
||||
super("", "", AllIcons.General.Filter);
|
||||
@@ -47,7 +46,7 @@ final class ShowLibraryFramesAction extends ToggleAction {
|
||||
if (Boolean.TRUE.equals(isSupported)) {
|
||||
presentation.setVisible(true);
|
||||
final boolean shouldShow = !Toggleable.isSelected(presentation);
|
||||
presentation.setText(shouldShow ? ourTextWhenShowIsOn : ourTextWhenShowIsOff);
|
||||
presentation.setText(XDebuggerBundle.message(shouldShow ? "hide.library.frames.tooltip" : "show.all.frames.tooltip"));
|
||||
}
|
||||
else {
|
||||
presentation.setVisible(false);
|
||||
|
||||
@@ -91,6 +91,6 @@ public class DataViewsConfigurableUi {
|
||||
}
|
||||
|
||||
private void createUIComponents() {
|
||||
myEditorSettingsPanel = Panel("Editor");
|
||||
myEditorSettingsPanel = Panel(XDebuggerBundle.message("data.views.configurable.panel.title"));
|
||||
}
|
||||
}
|
||||
@@ -560,4 +560,7 @@ class.pattern.not.specified=Class pattern not specified
|
||||
add.method.breakpoint=Add Method Breakpoint
|
||||
if.the.value.is.referenced.by.a.constant.field=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
|
||||
label.object.markup.dialog.mark.referenced=&Mark values referenced from constant fields
|
||||
label.object.markup.dialog.mark.referenced=&Mark values referenced from constant fields
|
||||
debugger.data.views.configurable.show.title=Show
|
||||
overhead.toolwindow.title=Overhead
|
||||
memory.toolwindow.title=Memory
|
||||
Reference in New Issue
Block a user