X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.utils.ui%2Fsrc%2Forg%2Fsimantics%2Futils%2Fui%2Finternal%2Fawt%2FPlatform.java;h=991f19329879d64dc1974f5465bc0fa8154d894e;hb=refs%2Fchanges%2F38%2F238%2F2;hp=f3854f93bb294bae924123e7a73979ed613810db;hpb=ac5f1da15cc639da880fea86a7b828c8fa2e1b7e;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/internal/awt/Platform.java b/bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/internal/awt/Platform.java index f3854f93b..991f19329 100644 --- a/bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/internal/awt/Platform.java +++ b/bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/internal/awt/Platform.java @@ -1,30 +1,30 @@ -/******************************************************************************* - * Copyright (c) 2007 SAS Institute. - * 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: - * SAS Institute - initial API and implementation - *******************************************************************************/ -package org.simantics.utils.ui.internal.awt; - -import org.eclipse.swt.SWT; - -class Platform { - private static String platformString = SWT.getPlatform(); - - // prevent instantiation - private Platform() { - } - - public static boolean isWin32() { - return "win32".equals(platformString); //$NON-NLS-1$ - } - - public static boolean isGtk() { - return "gtk".equals(platformString); //$NON-NLS-1$ - } - -} +/******************************************************************************* + * Copyright (c) 2007 SAS Institute. + * 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: + * SAS Institute - initial API and implementation + *******************************************************************************/ +package org.simantics.utils.ui.internal.awt; + +import org.eclipse.swt.SWT; + +class Platform { + private static String platformString = SWT.getPlatform(); + + // prevent instantiation + private Platform() { + } + + public static boolean isWin32() { + return "win32".equals(platformString); //$NON-NLS-1$ + } + + public static boolean isGtk() { + return "gtk".equals(platformString); //$NON-NLS-1$ + } + +}