summaryrefslogtreecommitdiff
path: root/python/src/com/jetbrains/python/run/PythonRunConfigurationForm.java
diff options
context:
space:
mode:
Diffstat (limited to 'python/src/com/jetbrains/python/run/PythonRunConfigurationForm.java')
-rw-r--r--python/src/com/jetbrains/python/run/PythonRunConfigurationForm.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/python/src/com/jetbrains/python/run/PythonRunConfigurationForm.java b/python/src/com/jetbrains/python/run/PythonRunConfigurationForm.java
index da041f961f80..cad905fd9618 100644
--- a/python/src/com/jetbrains/python/run/PythonRunConfigurationForm.java
+++ b/python/src/com/jetbrains/python/run/PythonRunConfigurationForm.java
@@ -25,6 +25,7 @@ import com.intellij.openapi.util.io.FileUtil;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.ui.PanelWithAnchor;
import com.intellij.ui.RawCommandLineEditor;
+import com.intellij.ui.components.JBCheckBox;
import com.intellij.ui.components.JBLabel;
import com.jetbrains.python.debugger.PyDebuggerOptionsProvider;
import org.jetbrains.annotations.NotNull;
@@ -44,6 +45,7 @@ public class PythonRunConfigurationForm implements PythonRunConfigurationParams,
private final AbstractPyCommonOptionsForm myCommonOptionsForm;
private JComponent anchor;
private final Project myProject;
+ private JBCheckBox myShowCommandLineCheckbox;
public PythonRunConfigurationForm(PythonRunConfiguration configuration) {
myCommonOptionsForm = PyCommonOptionsFormFactory.getInstance().createForm(configuration.getCommonOptionsFormData());
@@ -105,6 +107,16 @@ public class PythonRunConfigurationForm implements PythonRunConfigurationParams,
}
@Override
+ public boolean showCommandLineAfterwards() {
+ return myShowCommandLineCheckbox.isSelected();
+ }
+
+ @Override
+ public void setShowCommandLineAfterwards(boolean showCommandLineAfterwards) {
+ myShowCommandLineCheckbox.setSelected(showCommandLineAfterwards);
+ }
+
+ @Override
public JComponent getAnchor() {
return anchor;
}