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