1 11 12 package org.eclipse.equinox.internal.app; 13 14 import org.eclipse.osgi.framework.log.FrameworkLogEntry; 15 16 public class AnyThreadAppLauncher implements Runnable { 17 private EclipseAppHandle appHandle; 18 19 private AnyThreadAppLauncher(EclipseAppHandle appHandle) { 20 this.appHandle = appHandle; 21 } 22 23 public void run() { 24 try { 25 appHandle.run(null); 27 } catch (Throwable e) { 28 Activator.log(new FrameworkLogEntry(Activator.PI_APP, FrameworkLogEntry.ERROR, 0, e.getMessage(), 0, e, null)); 29 } 30 } 31 32 static void launchEclipseApplication(EclipseAppHandle appHandle) { 33 AnyThreadAppLauncher launchable = new AnyThreadAppLauncher(appHandle); 34 new Thread (launchable, "app thread - " + appHandle.getInstanceId()).start(); } 36 } 37 | Popular Tags |