CONFIGURE COLUMN: change the value of text to 10000 when input a number greater than...
authorHyunJong Park <paulhj.park@samsung.com>
Tue, 11 Oct 2016 10:37:19 +0000 (19:37 +0900)
committerHyunJong Park <paulhj.park@samsung.com>
Tue, 11 Oct 2016 10:37:19 +0000 (19:37 +0900)
Change-Id: I6e8b7e577e64afec69e260b0a25ed3c75d17da17
Signed-off-by: HyunJong Park <paulhj.park@samsung.com>
bundles/org.eclipse.jface/src/org/eclipse/jface/util/ConfigureColumns.java

index 0d0569b..37793bf 100644 (file)
@@ -8,6 +8,11 @@
  * Contributors:
  *     IBM Corporation - initial API and implementation
  ******************************************************************************/
+/*
+ * 2016-10-11 HyunJong Park paulhj.park@samsung.com
+ * Modification by S-Core Co., Ltd.
+ * 1. change the value of text to 10000 when input a number greater than 10000
+ */
 
 package org.eclipse.jface.util;
 
@@ -307,6 +312,13 @@ public class ConfigureColumns {
                                        }
                                        try {
                                                int width = Integer.parseInt(text.getText());
+                                               /* Tizen */
+                                               if (width > 10000) {
+                                                       width = 10000;
+                                                       text.setText(Integer.toString(width));
+                                                       text.redraw();
+                                               }
+                                               /* ===== */
                                                columnObject.width = width;
                                        } catch (NumberFormatException ex) {
                                                // ignore for now