From 1d113962bfb10bbe92aa9ffa96ede968555b9820 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Tue, 31 Jan 2017 13:26:23 +0300 Subject: [PATCH] + getOsNameAndVersion() --- platform/util/src/com/intellij/openapi/util/SystemInfo.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/util/src/com/intellij/openapi/util/SystemInfo.java b/platform/util/src/com/intellij/openapi/util/SystemInfo.java index 99468ed2a3e6..c8ced8eda9e5 100644 --- a/platform/util/src/com/intellij/openapi/util/SystemInfo.java +++ b/platform/util/src/com/intellij/openapi/util/SystemInfo.java @@ -172,6 +172,10 @@ public class SystemInfo extends SystemInfoRt { return new int[]{toInt(parts.get(0)), toInt(parts.get(1)), toInt(parts.get(2))}; } + public static String getOsNameAndVersion() { + return System.getProperty("os.name") + " " + System.getProperty("os.version"); + } + private static int normalize(int number) { return number > 9 ? 9 : number; }