mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-94651 Project From Template: the Project Format option set when creating project from JavaModule template should not affect projects created from teh different templates
This commit is contained in:
@@ -26,6 +26,7 @@ import com.intellij.openapi.actionSystem.AnAction;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.actionSystem.CustomShortcutSet;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.components.StorageScheme;
|
||||
import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.module.ModuleManager;
|
||||
import com.intellij.openapi.options.ConfigurationException;
|
||||
@@ -470,6 +471,9 @@ public class SelectTemplateStep extends ModuleWizardStep implements SettingsStep
|
||||
myModuleBuilder.setModuleFilePath(
|
||||
FileUtil.toSystemIndependentName(myModuleFileLocation.getText()) + "/" + moduleName + ModuleFileType.DOT_DEFAULT_EXTENSION);
|
||||
myModuleBuilder.setContentEntryPath(FileUtil.toSystemIndependentName(getModuleContentRoot()));
|
||||
if (myModuleBuilder instanceof TemplateModuleBuilder) {
|
||||
myWizardContext.setProjectStorageFormat(StorageScheme.DIRECTORY_BASED);
|
||||
}
|
||||
}
|
||||
|
||||
if (mySettingsStep != null) {
|
||||
|
||||
Reference in New Issue
Block a user