[Title] Enable to turn on the usb keyboard after completely boot up
authorgiwoong.kim <giwoong.kim@samsung.com>
Mon, 10 Sep 2012 12:19:13 +0000 (21:19 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Mon, 10 Sep 2012 12:19:13 +0000 (21:19 +0900)
[Type] enhancement
[Module] Emulator / menu
[Priority] major
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase] Advanced > USB Keyborad > On

tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java

index fb23c7d..93c9aad 100644 (file)
@@ -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 );