javauis/eswt_qt/s60utils/java/src/com/nokia/mj/impl/uitestutils/RuntimeUtils.java
equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 package com.nokia.mj.impl.uitestutils; |
|
19 |
|
20 import org.eclipse.ercp.swt.midp.UIThreadSupport; |
|
21 |
|
22 public class RuntimeUtils { |
|
23 |
|
24 public static final int S60 = 1; |
|
25 public static final int X11 = 2; |
|
26 |
|
27 public static int getPlatform() { |
|
28 return S60; |
|
29 } |
|
30 |
|
31 public synchronized static final int startUI( |
|
32 final Runnable callback) { |
|
33 UIThreadSupport.startInUIThread(new Runnable() { |
|
34 public void run() { |
|
35 callback.run(); |
|
36 } |
|
37 }); |
|
38 return 0; |
|
39 } |
|
40 } |
|