Thread deviceinitthread = new Thread(new Runnable() {
public void run() {
- Display.getDefault().syncExec(new Runnable() {
+ // initialize device connection
+ DeviceManager.init();
+ DeviceManager.addDeviceListener();
+ DeviceManager.loadDevices();
+
+ Display.getDefault().asyncExec(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);