From 77a5a17c684f4c14a7525977d2f53d3ba6c3fc57 Mon Sep 17 00:00:00 2001 From: "Vladislav.Soroka" Date: Mon, 30 Jun 2014 15:30:24 +0400 Subject: [PATCH] EA-57771 - NCDFE: GrailsMavenDebuggerRunner.canRun --- .../openapi/externalSystem/util/ExternalSystemApiUtil.java | 5 +++++ 1 file changed, 5 insertions(+) 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 8d0c9790f3e1..a6cfc65eb759 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 @@ -672,6 +672,11 @@ public class ExternalSystemApiUtil { return module != null && systemId.getId().equals(module.getOptionValue(ExternalSystemConstants.EXTERNAL_SYSTEM_ID_KEY)); } + @Contract("_, null -> false") + public static boolean isExternalSystemAwareModule(@NotNull String systemId, @Nullable Module module) { + return module != null && systemId.equals(module.getOptionValue(ExternalSystemConstants.EXTERNAL_SYSTEM_ID_KEY)); + } + @Nullable public static String getExternalProjectPath(@Nullable Module module) { return module != null ? module.getOptionValue(ExternalSystemConstants.LINKED_PROJECT_PATH_KEY) : null;