]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/internal/awt/Platform.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.utils.ui / src / org / simantics / utils / ui / internal / awt / Platform.java
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
7  *
8  * Contributors:
9  *     SAS Institute - initial API and implementation
10  *******************************************************************************/
11 package org.simantics.utils.ui.internal.awt;
12
13 import org.eclipse.swt.SWT;
14
15 class Platform {
16     private static String platformString = SWT.getPlatform();
17
18     // prevent instantiation
19     private Platform() {
20     }
21     
22     public static boolean isWin32() {
23         return "win32".equals(platformString); //$NON-NLS-1$
24     }
25     
26     public static boolean isGtk() {
27         return "gtk".equals(platformString); //$NON-NLS-1$
28     }
29     
30 }