From f286b80b3ea506c8b1e24c5e119bd67432147733 Mon Sep 17 00:00:00 2001 From: "giwoong.kim" Date: Mon, 10 Sep 2012 21:19:13 +0900 Subject: [PATCH] [Title] Enable to turn on the usb keyboard after completely boot up [Type] enhancement [Module] Emulator / menu [Priority] major [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] Advanced > USB Keyborad > On --- .../client/src/org/tizen/emulator/skin/EmulatorSkin.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java b/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java index fb23c7d..93c9aad 100644 --- a/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java +++ b/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java @@ -1769,7 +1769,9 @@ public class EmulatorSkin { @Override public void widgetSelected( SelectionEvent e ) { if ( !communicator.isSensorDaemonStarted() ) { - SkinUtil.openMessage( shell, null, "SDB is not ready.\nPlease, wait.", SWT.ICON_WARNING, config ); + SkinUtil.openMessage(shell, null, + "SDB is not ready.\nPlease wait until the emulator is completely boot up.", + SWT.ICON_WARNING, config); return; } @@ -2054,6 +2056,16 @@ public class EmulatorSkin { SelectionAdapter usbSelectionAdaptor = new SelectionAdapter() { @Override public void widgetSelected( SelectionEvent e ) { + if (!communicator.isSensorDaemonStarted()) { + SkinUtil.openMessage(shell, null, + "USB is not ready.\nPlease wait until the emulator is completely boot up.", + SWT.ICON_WARNING, config); + usbOnItem.setSelection(isOnUsbKbd); + usbOffItem.setSelection(!isOnUsbKbd); + + return; + } + MenuItem item = (MenuItem) e.getSource(); if ( item.getSelection() ) { boolean on = item.equals( usbOnItem ); -- 2.7.4