mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
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:
committed by
intellij-monorepo-bot
parent
6d881d9f8b
commit
200570e1a7
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user