From: giwoong.kim Date: Mon, 10 Sep 2012 12:19:13 +0000 (+0900) Subject: [Title] Enable to turn on the usb keyboard after completely boot up X-Git-Tag: TizenStudio_2.0_p2.3~1327 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f286b80b3ea506c8b1e24c5e119bd67432147733;p=sdk%2Femulator%2Fqemu.git [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 --- 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 );