X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.nativemem%2Fsrc%2Forg%2Fsimantics%2Fnativemem%2Finternal%2FOS.java;h=2351c18bb03efc8836a22b3a44850fd25b5e875f;hb=7057e920b41f05ea4a98d904abbc708d7f131fa2;hp=a1d0a48c3547b8707426ab610706c9524c5cceb2;hpb=2531cdf245f42bce854d43f4d49a23983c79db96;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.nativemem/src/org/simantics/nativemem/internal/OS.java b/bundles/org.simantics.nativemem/src/org/simantics/nativemem/internal/OS.java index a1d0a48c3..2351c18bb 100644 --- a/bundles/org.simantics.nativemem/src/org/simantics/nativemem/internal/OS.java +++ b/bundles/org.simantics.nativemem/src/org/simantics/nativemem/internal/OS.java @@ -1,20 +1,34 @@ -package org.simantics.nativemem.internal; - -public enum OS { - APPLE, LINUX, SUN, WINDOWS, UNKNOWN; - - public static OS calculate() { - String osName = System.getProperty("os.name"); - assert osName != null; - osName = osName.toLowerCase(); - if (osName.startsWith("mac os x")) - return APPLE; - if (osName.startsWith("windows")) - return WINDOWS; - if (osName.startsWith("linux")) - return LINUX; - if (osName.startsWith("sun")) - return SUN; - return UNKNOWN; - } -} +/******************************************************************************* + * Copyright (c) 2017 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Semantum Oy - initial API and implementation + *******************************************************************************/ +package org.simantics.nativemem.internal; + +/** + * @author Tuukka Lehtonen + */ +public enum OS { + APPLE, LINUX, SUN, WINDOWS, UNKNOWN; + + public static OS calculate() { + String osName = System.getProperty("os.name"); + assert osName != null; + osName = osName.toLowerCase(); + if (osName.startsWith("mac os x")) + return APPLE; + if (osName.startsWith("windows")) + return WINDOWS; + if (osName.startsWith("linux")) + return LINUX; + if (osName.startsWith("sun")) + return SUN; + return UNKNOWN; + } +}