mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
+7
-10
@@ -23,7 +23,6 @@ import com.intellij.ui.StateRestoringCheckBox;
|
||||
import com.intellij.ui.components.panels.VerticalBox;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.border.Border;
|
||||
import java.awt.*;
|
||||
|
||||
public class DebuggerLaunchingConfigurable implements Configurable{
|
||||
@@ -34,6 +33,7 @@ public class DebuggerLaunchingConfigurable implements Configurable{
|
||||
private JCheckBox myCbDisableJIT;
|
||||
private JCheckBox myFocusAppCheckBox;
|
||||
|
||||
@Override
|
||||
public void reset() {
|
||||
final DebuggerSettings settings = DebuggerSettings.getInstance();
|
||||
if (!SystemInfo.isWindows) {
|
||||
@@ -55,6 +55,7 @@ public class DebuggerLaunchingConfigurable implements Configurable{
|
||||
myFocusAppCheckBox.setSelected(Registry.is("debugger.mayBringFrameToFrontOnBreakpoint"));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void apply() {
|
||||
getSettingsTo(DebuggerSettings.getInstance());
|
||||
}
|
||||
@@ -72,6 +73,7 @@ public class DebuggerLaunchingConfigurable implements Configurable{
|
||||
Registry.get("debugger.mayBringFrameToFrontOnBreakpoint").setValue(myFocusAppCheckBox.isSelected());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isModified() {
|
||||
final DebuggerSettings currentSettings = DebuggerSettings.getInstance();
|
||||
final DebuggerSettings debuggerSettings = currentSettings.clone();
|
||||
@@ -79,14 +81,17 @@ public class DebuggerLaunchingConfigurable implements Configurable{
|
||||
return !debuggerSettings.equals(currentSettings) || Registry.is("debugger.mayBringFrameToFrontOnBreakpoint") != myFocusAppCheckBox.isSelected();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDisplayName() {
|
||||
return DebuggerBundle.message("debugger.launching.configurable.display.name");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getHelpTopic() {
|
||||
return "reference.idesettings.debugger.launching";
|
||||
}
|
||||
|
||||
@Override
|
||||
public JComponent createComponent() {
|
||||
myCbForceClassicVM = new StateRestoringCheckBox(DebuggerBundle.message("label.debugger.launching.configurable.force.classic.vm"));
|
||||
myCbDisableJIT = new JCheckBox(DebuggerBundle.message("label.debugger.launching.configurable.disable.jit"));
|
||||
@@ -95,15 +100,6 @@ public class DebuggerLaunchingConfigurable implements Configurable{
|
||||
myRbShmem = new JRadioButton(DebuggerBundle.message("label.debugger.launching.configurable.shmem"));
|
||||
myFocusAppCheckBox = new JCheckBox(DebuggerBundle.message("label.debugger.focusAppOnBreakpoint"));
|
||||
|
||||
int cbLeftOffset = 0;
|
||||
final Border border = myCbForceClassicVM.getBorder();
|
||||
if (border != null) {
|
||||
final Insets insets = border.getBorderInsets(myCbForceClassicVM);
|
||||
if (insets != null) {
|
||||
cbLeftOffset = insets.left;
|
||||
}
|
||||
}
|
||||
|
||||
final ButtonGroup gr = new ButtonGroup();
|
||||
gr.add(myRbSocket);
|
||||
gr.add(myRbShmem);
|
||||
@@ -129,6 +125,7 @@ public class DebuggerLaunchingConfigurable implements Configurable{
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void disposeUIResources() {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user