COMMON: COMMAND BAR: Fixed not to overwrite user input with focused table 02/15502/1
authorkh5325.kim <kh5325.kim@samsung.com>
Wed, 22 Jan 2014 10:02:29 +0000 (19:02 +0900)
committerkh5325.kim <kh5325.kim@samsung.com>
Wed, 22 Jan 2014 10:02:29 +0000 (19:02 +0900)
item

Fixed not to overwrite user input with focused table item.

Change-Id: I47ad9c0491f8ac5244fa1dcb2659a6e08a66544e
Signed-off-by: kh5325.kim <kh5325.kim@samsung.com>
org.tizen.common.ui/src/org/tizen/common/ui/commandbar/StatusBar.java
org.tizen.common.ui/src/org/tizen/common/ui/commandbar/textAssist/TextAssist.java

index 1cfd3d8..1fe523b 100644 (file)
@@ -104,7 +104,7 @@ public class StatusBar extends AbstractWorkbenchTrimWidget implements SubmitList
 \r
         fAssistant = new Label(fComposite, SWT.NONE);\r
         fAssistant.setImage(Activator.imageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/commandbar_x24.png").createImage());\r
-        fAssistant.setToolTipText("Command Bar for your convenience. What could I do for you?");\r
+        fAssistant.setToolTipText("Command Bar for your convenience. What can I do for you?");\r
         //Label glue = new Label(fComposite, SWT.NONE);\r
         //glue.setLayoutData(new RowData(2, -1));\r
         final CommandProvider contentProvider = new CommandProvider(this);\r
index f1f7281..a9d5e65 100644 (file)
@@ -360,7 +360,8 @@ public class TextAssist extends Composite {
                     break;\r
                 case SWT.CR:\r
                     if (TextAssist.this.popup.isVisible() && TextAssist.this.table.getSelectionIndex() != -1) {\r
-                        TextAssist.this.text.setText(TextAssist.this.table.getSelection()[0].getText());\r
+                        // fireSubmit with the text in the text box user just types\r
+                        //TextAssist.this.text.setText(TextAssist.this.table.getSelection()[0].getText());\r
                         TextAssist.this.popup.setVisible(false);\r
                     }\r
                     fireSubmit(TextAssist.this.text.getText());\r