From: dongkyu6 lee Date: Mon, 15 Feb 2016 23:41:10 +0000 (+0900) Subject: Improved DA launching time X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=83c570baf1a03d10ed86b63f5799dabec0b63cdd;p=sdk%2Ftools%2Fdynamic-analyzer.git Improved DA launching time Change-Id: I08e97ce0f60404d3138346a795fb1545662e0acd --- diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/listeners/AnalyzerPerspectiveListener.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/listeners/AnalyzerPerspectiveListener.java old mode 100644 new mode 100755 index 72de6e1..c1586bf --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/listeners/AnalyzerPerspectiveListener.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/listeners/AnalyzerPerspectiveListener.java @@ -40,6 +40,8 @@ import org.tizen.dynamicanalyzer.control.SideWorker; import org.tizen.dynamicanalyzer.setting.SettingDataManager; import org.tizen.dynamicanalyzer.swap.platform.BinarySettingManager; import org.tizen.dynamicanalyzer.ui.toolbar.Toolbar; +import org.eclipse.swt.widgets.Display; + public class AnalyzerPerspectiveListener extends PerspectiveAdapter { private static boolean init = false; @@ -54,14 +56,23 @@ public class AnalyzerPerspectiveListener extends PerspectiveAdapter { @SuppressWarnings("unused") SettingDataManager setting = SettingDataManager.INSTANCE; - // initialize device connection - DeviceManager.init(); - DeviceManager.addDeviceListener(); - DeviceManager.loadDevices(); - - // initialize toolbar control state - Toolbar.INSTANCE.updateDeviceCombo(null); - Toolbar.INSTANCE.updateAppCombo(true); + Thread deviceinitthread = new Thread(new Runnable() { + public void run() { + Display.getDefault().syncExec(new Runnable() { + public void run() { + // initialize device connection + DeviceManager.init(); + DeviceManager.addDeviceListener(); + DeviceManager.loadDevices(); + + // initialize toolbar control state + Toolbar.INSTANCE.updateDeviceCombo(null); + Toolbar.INSTANCE.updateAppCombo(true); + } + }); + } + }); + deviceinitthread.start(); // initialize binary setting BinarySettingManager.getInstance().initBinarySettings();