[WAC] remove SWTUtility.java
authorchanghyun1.lee <changhyun1.lee@samsung.com>
Mon, 25 Jul 2011 04:59:19 +0000 (13:59 +0900)
committerchanghyun1.lee <changhyun1.lee@samsung.com>
Mon, 25 Jul 2011 04:59:19 +0000 (13:59 +0900)
Change-Id: I4f305a98973ce50d307a0d1a1360baf79f7af91c

com.samsung.ide.common/src/com/samsung/ide/common/util/SWTUtil.java
com.samsung.ide.common/src/com/samsung/ide/common/util/SWTUtility.java [deleted file]

index 57fed80..b0877f2 100644 (file)
@@ -50,8 +50,8 @@ public class SWTUtil {
        }
 
     /**
-     * create SWT ScrolledComposite
-     * 
+     * Creates SWT ScrolledComposite.
+     * @return ScrolledComposite
      * @author changhyun1.lee@samsung.com, S-Core Inc.
      */
     public static ScrolledComposite createScrolledComposite(Composite parent) {
diff --git a/com.samsung.ide.common/src/com/samsung/ide/common/util/SWTUtility.java b/com.samsung.ide.common/src/com/samsung/ide/common/util/SWTUtility.java
deleted file mode 100644 (file)
index 51ad66b..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-/****************************************************************************************
- * Copyright (c) 2011 S-Core Co.
- * For conditions of distribution and use, see http://www.eclipse.org/legal/epl-v10.html
- ****************************************************************************************/
-
-package com.samsung.ide.common.util;
-
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.VerifyEvent;
-import org.eclipse.swt.events.VerifyListener;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Text;
-
-
-public class SWTUtility {
-       // Constructor
-       private SWTUtility() {};
-
-       /**
-        * create SWT Text for input limited digit
-        * 
-        * @author jihoon80.song@samsung.com, S-Core Inc.
-        */
-       public static Text createNumericText(Composite composite, int style, int limit) {
-               Text text = new Text(composite, style);
-
-               text.setTextLimit(limit);
-
-               text.addVerifyListener(new VerifyListener() {
-                       final Pattern pattern = Pattern.compile("[0-9]*"); //$NON-NLS-1$
-                       public void verifyText(VerifyEvent e) {
-                               Matcher m = pattern.matcher(e.text);
-                               if (!m.matches()) {
-                                       e.doit = false;
-                               }
-                       }
-               });
-
-               return text;
-       }
-
-       public static Text createNumericText(Composite composite, int limit) {
-               return createNumericText(composite, SWT.BORDER, limit);
-       }
-}
\ No newline at end of file