+++ /dev/null
-/*******************************************************************************\r
- * Copyright (c) 2007 SAS Institute.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- * SAS Institute - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.utils.ui.awt;\r
-\r
-import org.eclipse.swt.SWT;\r
-\r
-class Platform {\r
- private static String platformString = SWT.getPlatform();\r
-\r
- // prevent instantiation\r
- private Platform() {\r
- }\r
- \r
- public static boolean isWin32() {\r
- return "win32".equals(platformString); //$NON-NLS-1$\r
- }\r
- \r
- public static boolean isGtk() {\r
- return "gtk".equals(platformString); //$NON-NLS-1$\r
- }\r
- \r
-}\r