diff --git a/python/ide/src/com/jetbrains/python/PyIdeCommonOptionsForm.java b/python/ide/src/com/jetbrains/python/PyIdeCommonOptionsForm.java index ea49d567fbe9..254e41a9acc7 100644 --- a/python/ide/src/com/jetbrains/python/PyIdeCommonOptionsForm.java +++ b/python/ide/src/com/jetbrains/python/PyIdeCommonOptionsForm.java @@ -276,23 +276,23 @@ public class PyIdeCommonOptionsForm implements AbstractPyCommonOptionsForm { } @Override - public boolean addContentRoots() { + public boolean shouldAddContentRoots() { return myAddContentRootsCheckbox.isSelected(); } @Override - public boolean addSourceRoots() { + public boolean shouldAddSourceRoots() { return myAddSourceRootsCheckbox.isSelected(); } @Override - public void addContentRoots(boolean add) { - myAddContentRootsCheckbox.setSelected(add); + public void setAddContentRoots(boolean flag) { + myAddContentRootsCheckbox.setSelected(flag); } @Override - public void addSourceRoots(boolean add) { - myAddSourceRootsCheckbox.setSelected(add); + public void setAddSourceRoots(boolean flag) { + myAddSourceRootsCheckbox.setSelected(flag); } private void createUIComponents() { diff --git a/python/openapi/src/com/jetbrains/python/run/AbstractPythonRunConfigurationParams.java b/python/openapi/src/com/jetbrains/python/run/AbstractPythonRunConfigurationParams.java index 313c7ceb008f..113da30692a5 100644 --- a/python/openapi/src/com/jetbrains/python/run/AbstractPythonRunConfigurationParams.java +++ b/python/openapi/src/com/jetbrains/python/run/AbstractPythonRunConfigurationParams.java @@ -60,8 +60,9 @@ public interface AbstractPythonRunConfigurationParams { void setMappingSettings(@Nullable PathMappingSettings mappingSettings); - boolean addContentRoots(); - boolean addSourceRoots(); - void addContentRoots(boolean add); - void addSourceRoots(boolean add); + boolean shouldAddContentRoots(); + boolean shouldAddSourceRoots(); + + void setAddContentRoots(boolean flag); + void setAddSourceRoots(boolean flag); } diff --git a/python/pluginSrc/com/jetbrains/python/run/PyPluginCommonOptionsForm.java b/python/pluginSrc/com/jetbrains/python/run/PyPluginCommonOptionsForm.java index 651cc638d70f..15f041cfabd9 100644 --- a/python/pluginSrc/com/jetbrains/python/run/PyPluginCommonOptionsForm.java +++ b/python/pluginSrc/com/jetbrains/python/run/PyPluginCommonOptionsForm.java @@ -255,23 +255,23 @@ public class PyPluginCommonOptionsForm implements AbstractPyCommonOptionsForm { } @Override - public boolean addContentRoots() { + public boolean shouldAddContentRoots() { return myAddContentRootsCheckbox.isSelected(); } @Override - public boolean addSourceRoots() { + public boolean shouldAddSourceRoots() { return myAddSourceRootsCheckbox.isSelected(); } @Override - public void addContentRoots(boolean add) { - myAddContentRootsCheckbox.setSelected(add); + public void setAddContentRoots(boolean flag) { + myAddContentRootsCheckbox.setSelected(flag); } @Override - public void addSourceRoots(boolean add) { - myAddSourceRootsCheckbox.setSelected(add); + public void setAddSourceRoots(boolean flag) { + myAddSourceRootsCheckbox.setSelected(flag); } } diff --git a/python/src/com/jetbrains/python/console/PyConsoleOptions.java b/python/src/com/jetbrains/python/console/PyConsoleOptions.java index 4647a7961bf7..01166f301c2d 100644 --- a/python/src/com/jetbrains/python/console/PyConsoleOptions.java +++ b/python/src/com/jetbrains/python/console/PyConsoleOptions.java @@ -122,8 +122,8 @@ public class PyConsoleOptions implements PersistentStateComponent collectPythonPath() { final Module module = myConfig.getModule(); - Set pythonPath = Sets.newHashSet(collectPythonPath(module, myConfig.addContentRoots(), myConfig.addSourceRoots())); + Set pythonPath = Sets.newHashSet(collectPythonPath(module, myConfig.shouldAddContentRoots(), myConfig.shouldAddSourceRoots())); if (isDebug() && getSdkFlavor() instanceof JythonSdkFlavor) { //that fixes Jython problem changing sys.argv on execfile, see PY-8164 pythonPath.add(PythonHelpersLocator.getHelperPath("pycharm")); diff --git a/python/src/com/jetbrains/python/testing/PythonTestRunConfigurationForm.java b/python/src/com/jetbrains/python/testing/PythonTestRunConfigurationForm.java index d5f7d8d730be..6f9dbe3940e3 100644 --- a/python/src/com/jetbrains/python/testing/PythonTestRunConfigurationForm.java +++ b/python/src/com/jetbrains/python/testing/PythonTestRunConfigurationForm.java @@ -140,22 +140,22 @@ public class PythonTestRunConfigurationForm implements AbstractPythonTestRunConf @Override public boolean addContentRoots() { - return myCommonOptionsForm.addContentRoots(); + return myCommonOptionsForm.shouldAddContentRoots(); } @Override public boolean addSourceRoots() { - return myCommonOptionsForm.addSourceRoots(); + return myCommonOptionsForm.shouldAddSourceRoots(); } @Override public void addContentRoots(boolean addContentRoots) { - myCommonOptionsForm.addContentRoots(addContentRoots); + myCommonOptionsForm.setAddContentRoots(addContentRoots); } @Override public void addSourceRoots(boolean addSourceRoots) { - myCommonOptionsForm.addSourceRoots(addSourceRoots); + myCommonOptionsForm.setAddSourceRoots(addSourceRoots); } public String getFolderName() {