2003/10/13 01:00:41
[org.ibex.core.git] / src / org / xwt / Platform.java
index 9216dcb..0ca55b9 100644 (file)
@@ -232,7 +232,9 @@ public class Platform {
     /** default implementation is Eric Albert's BrowserLauncher.java */
     protected void _newBrowserWindow(String url) {
         try {
-            edu.stanford.ejalbert.BrowserLauncher.openURL(url);
+            Class c = Class.forName("edu.stanford.ejalbert.BrowserLauncher");
+            Method m = c.getMethod("openURL", new Class[] { String.class });
+            m.invoke(null, new String[] { url });
         } catch (Exception e) {
             Log.log(this, e);
         }
@@ -310,7 +312,9 @@ public class Platform {
 
         return cachedProxyInfo;
     }
-
+    
+    public static void running() { platform._running(); }
+    public void _running() { new Semaphore().block(); }
 }