javauis/eswt_qt/org.eclipse.swt/Eclipse_SWT_PI/s60/org/eclipse/swt/internal/qt/midp/UIThreadLauncher.java
equal
deleted
inserted
replaced
|
1 /******************************************************************************* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
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 * Nokia Corporation - initial implementation |
|
10 *******************************************************************************/ |
|
11 package org.eclipse.swt.internal.qt.midp; |
|
12 |
|
13 import org.eclipse.swt.internal.qt.s60.OS; |
|
14 |
|
15 /** |
|
16 * Symbian specific implementation of launching the UI thread for a MIDlet. |
|
17 */ |
|
18 public final class UIThreadLauncher { |
|
19 public static boolean startInUIThread(Runnable runnable) { |
|
20 int status = OS.startUI(runnable); |
|
21 if(status != 0) { |
|
22 return false; |
|
23 } |
|
24 return true; |
|
25 } |
|
26 } |