mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
#RUBY-17804 #IDEA-CR-8480 fix add empty project to project wizard
This commit is contained in:
+5
-2
@@ -57,8 +57,7 @@ public class AbstractNewProjectStep extends DefaultActionGroup implements DumbAw
|
||||
|
||||
NullableConsumer<ProjectSettingsStepBase> callback = customization.createCallback();
|
||||
ProjectSpecificAction projectSpecificAction = customization.createProjectSpecificAction(callback);
|
||||
|
||||
addAll(projectSpecificAction.getChildren(null));
|
||||
addProjectSpecificAction(projectSpecificAction);
|
||||
|
||||
DirectoryProjectGenerator[] generators = customization.getProjectGenerators();
|
||||
customization.setUpBasicAction(projectSpecificAction, generators);
|
||||
@@ -67,6 +66,10 @@ public class AbstractNewProjectStep extends DefaultActionGroup implements DumbAw
|
||||
addAll(customization.getExtraActions(callback));
|
||||
}
|
||||
|
||||
protected void addProjectSpecificAction(@NotNull final ProjectSpecificAction projectSpecificAction) {
|
||||
addAll(projectSpecificAction.getChildren(null));
|
||||
}
|
||||
|
||||
protected static abstract class Customization {
|
||||
@NotNull
|
||||
protected ProjectSpecificAction createProjectSpecificAction(@NotNull final NullableConsumer<ProjectSettingsStepBase> callback) {
|
||||
|
||||
Reference in New Issue
Block a user