EA-57771 - NCDFE: GrailsMavenDebuggerRunner.canRun

This commit is contained in:
Vladislav.Soroka
2014-06-30 15:36:39 +04:00
parent 882d6133c1
commit 77a5a17c68
@@ -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;