mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
filter sdks for template based module builders (IDEA-227948)
GitOrigin-RevId: b9ac0ce91ac3362791a87a10f6206282bcad4c87
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4de9ce0393
commit
3fc5b36229
@@ -24,6 +24,7 @@ import com.intellij.openapi.progress.Task;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.project.ProjectManager;
|
||||
import com.intellij.openapi.project.ex.ProjectManagerEx;
|
||||
import com.intellij.openapi.projectRoots.SdkTypeId;
|
||||
import com.intellij.openapi.roots.ModifiableRootModel;
|
||||
import com.intellij.openapi.roots.ModuleRootManager;
|
||||
import com.intellij.openapi.roots.ui.configuration.ModulesProvider;
|
||||
@@ -375,6 +376,11 @@ public class TemplateModuleBuilder extends ModuleBuilder {
|
||||
getBytes(StandardCharsets.UTF_8);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSuitableSdkType(SdkTypeId sdkType) {
|
||||
return myType.createModuleBuilder().isSuitableSdkType(sdkType);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public Project createProject(String name, @NotNull String path) {
|
||||
|
||||
Reference in New Issue
Block a user