New Project Wizard: call validate when location field created to validate it first time.

`com.intellij.platform.DirectoryProjectGenerator.validate` isn't called first time when location field was just created, but the generator must validate it as well

GitOrigin-RevId: 9579054f55d81ee14af24e0dc9131c4a39ef6598
This commit is contained in:
Ilya.Kazakevich
2024-09-03 15:54:43 +02:00
committed by intellij-monorepo-bot
parent 6d881d9f8b
commit 200570e1a7

View File

@@ -114,6 +114,7 @@ public class ProjectSettingsStepBase<T> extends AbstractActionWithPanel implemen
bottomPanel.add(label, BorderLayout.NORTH);
bottomPanel.add(button, BorderLayout.EAST);
mainPanel.add(bottomPanel, BorderLayout.SOUTH);
checkValid();
return mainPanel;
}
@@ -330,6 +331,7 @@ public class ProjectSettingsStepBase<T> extends AbstractActionWithPanel implemen
final FileChooserDescriptor descriptor = FileChooserDescriptorFactory.createSingleFolderDescriptor();
myLocationField.addBrowseFolderListener(IdeBundle.message("directory.project.location.title"),
IdeBundle.message("directory.project.location.description"), null, descriptor);
checkValid();
return LabeledComponent.create(myLocationField,
BundleBase.replaceMnemonicAmpersand(IdeBundle.message("directory.project.location.label")),
BorderLayout.WEST);