summaryrefslogtreecommitdiff
path: root/platform/external-system-api/src/com/intellij/openapi/externalSystem/util/ExternalSystemApiUtil.java
diff options
context:
space:
mode:
Diffstat (limited to 'platform/external-system-api/src/com/intellij/openapi/externalSystem/util/ExternalSystemApiUtil.java')
-rw-r--r--platform/external-system-api/src/com/intellij/openapi/externalSystem/util/ExternalSystemApiUtil.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/platform/external-system-api/src/com/intellij/openapi/externalSystem/util/ExternalSystemApiUtil.java b/platform/external-system-api/src/com/intellij/openapi/externalSystem/util/ExternalSystemApiUtil.java
index eaeeaed79335..a6bc66e4ebcf 100644
--- a/platform/external-system-api/src/com/intellij/openapi/externalSystem/util/ExternalSystemApiUtil.java
+++ b/platform/external-system-api/src/com/intellij/openapi/externalSystem/util/ExternalSystemApiUtil.java
@@ -713,6 +713,15 @@ public final class ExternalSystemApiUtil {
return projectInfo.getExternalProjectStructure();
}
+ public static @Nullable DataNode<ProjectData> findProjectNode(
+ @NotNull Project project,
+ @NotNull ProjectSystemId systemId,
+ @NotNull String projectPath
+ ) {
+ ExternalProjectInfo projectInfo = findProjectInfo(project, systemId, projectPath);
+ if (projectInfo == null) return null;
+ return projectInfo.getExternalProjectStructure();
+ }
@ApiStatus.Experimental
public static @Nullable ExternalProjectInfo findProjectInfo(@NotNull Project project,
@NotNull ProjectSystemId systemId,