javauis/eswt_qt/eswtuitestutils/javasrc/com/nokia/mj/impl/uitestutils/RuntimeUtils.java
changeset 35 85266cc22c7f
equal deleted inserted replaced
26:dc7c549001d5 35:85266cc22c7f
       
     1 package com.nokia.mj.impl.uitestutils;
       
     2 
       
     3 import org.eclipse.ercp.swt.midp.UIThreadSupport;
       
     4 
       
     5 public class RuntimeUtils {
       
     6 
       
     7     public static final int S60 = 1;
       
     8     public static final int X11 = 2;
       
     9     
       
    10     public static int getPlatform() {
       
    11         return S60;
       
    12     }
       
    13 
       
    14     public synchronized static final int startUI(
       
    15             final Runnable callback) {
       
    16         UIThreadSupport.startInUIThread(new Runnable() {
       
    17             public void run() {
       
    18                 callback.run();
       
    19             }
       
    20         });
       
    21         return 0;
       
    22     }
       
    23 }