1) Added missing strings for italic, underline and strike through.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / wizards / html / NumVerifyListener.java
index 4773702..6cdfee5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: NumVerifyListener.java,v 1.1 2004-10-05 20:51:57 jsurfer Exp $
+ * $Id: NumVerifyListener.java,v 1.3 2006-10-21 23:18:43 pombredanne Exp $
  * Copyright Narushima Hironori. All rights reserved.
  */
 package net.sourceforge.phpeclipse.wizards.html;
@@ -7,13 +7,15 @@ package net.sourceforge.phpeclipse.wizards.html;
 import java.util.regex.Pattern;
 
 import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.*;
+import org.eclipse.swt.events.VerifyEvent;
+import org.eclipse.swt.events.VerifyListener;
 
 public class NumVerifyListener implements VerifyListener {
-       
+
        Pattern numPattern = Pattern.compile("^\\d+$");
-       
+
        public void verifyText(VerifyEvent ev) {
-               ev.doit = numPattern.matcher( ev.text ).matches() || ev.keyCode == SWT.DEL || ev.character == SWT.BS;
+               ev.doit = numPattern.matcher(ev.text).matches()
+                               || ev.keyCode == SWT.DEL || ev.character == SWT.BS;
        }
 }