mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
external system: reuse module created by module wizard IDEA-169008
This commit is contained in:
+3
-6
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package com.intellij.openapi.externalSystem.service.project;
|
||||
|
||||
import com.intellij.openapi.externalSystem.model.ExternalSystemDataKeys;
|
||||
import com.intellij.openapi.externalSystem.model.project.*;
|
||||
import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.module.ModuleGrouperKt;
|
||||
@@ -103,11 +102,9 @@ public class IdeModelsProviderImpl implements IdeModelsProvider {
|
||||
}
|
||||
|
||||
private static boolean isApplicableIdeModule(@NotNull ModuleData moduleData, @NotNull Module ideModule) {
|
||||
if (ideModule.getProject().getUserData(ExternalSystemDataKeys.NEWLY_CREATED_PROJECT) == Boolean.TRUE) {
|
||||
for (VirtualFile root : ModuleRootManager.getInstance(ideModule).getContentRoots()) {
|
||||
if (pathsEqual(root.getPath(), moduleData.getLinkedExternalProjectPath())) {
|
||||
return true;
|
||||
}
|
||||
for (VirtualFile root : ModuleRootManager.getInstance(ideModule).getContentRoots()) {
|
||||
if (pathsEqual(root.getPath(), moduleData.getLinkedExternalProjectPath())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return isExternalSystemAwareModule(moduleData.getOwner(), ideModule) &&
|
||||
|
||||
Reference in New Issue
Block a user