mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed PY-13503 Create New Project: Expand more setting by default if there is an error in configuration
This commit is contained in:
+7
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package com.jetbrains.python.newProject.actions;
|
||||
|
||||
import com.intellij.facet.ui.ValidationResult;
|
||||
import com.intellij.ide.util.projectWizard.WebProjectTemplate;
|
||||
import com.intellij.openapi.project.DumbAware;
|
||||
import com.intellij.openapi.ui.VerticalFlowLayout;
|
||||
@@ -46,6 +47,12 @@ public class ProjectSpecificSettingsStep extends AbstractProjectSettingsStep imp
|
||||
if (advancedSettings != null) {
|
||||
final JPanel jPanel = new JPanel(new VerticalFlowLayout());
|
||||
final HideableDecorator deco = new HideableDecorator(jPanel, "Mor&e Settings", false);
|
||||
boolean isValid = checkValid();
|
||||
deco.setOn(!isValid);
|
||||
if (myProjectGenerator instanceof PythonProjectGenerator && !deco.isExpanded()) {
|
||||
final ValidationResult result = ((PythonProjectGenerator)myProjectGenerator).warningValidation(getSdk());
|
||||
deco.setOn(!result.isOk());
|
||||
}
|
||||
deco.setContentComponent(advancedSettings);
|
||||
return jPanel;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user