#RUBY-17804 #IDEA-CR-8480 fix add empty project to project wizard

This commit is contained in:
Dmitry.Krasilschikov
2016-02-16 20:03:34 +03:00
parent 86fc8980c3
commit eb6aee1e8b
@@ -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) {