1 /*******************************************************************************
\r
2 * Copyright (c) 2007 SAS Institute.
\r
3 * All rights reserved. This program and the accompanying materials
\r
4 * are made available under the terms of the Eclipse Public License v1.0
\r
5 * which accompanies this distribution, and is available at
\r
6 * http://www.eclipse.org/legal/epl-v10.html
\r
9 * SAS Institute - initial API and implementation
\r
10 *******************************************************************************/
\r
11 package org.simantics.utils.ui.awt;
\r
13 import org.eclipse.swt.SWT;
\r
16 private static String platformString = SWT.getPlatform();
\r
18 // prevent instantiation
\r
19 private Platform() {
\r
22 public static boolean isWin32() {
\r
23 return "win32".equals(platformString); //$NON-NLS-1$
\r
26 public static boolean isGtk() {
\r
27 return "gtk".equals(platformString); //$NON-NLS-1$
\r