diff options
author | William Chen | 2012-06-18 04:51:08 +0000 |
---|---|---|
committer | William Chen | 2012-06-18 04:51:08 +0000 |
commit | 4bb8e30d69a4451b945a9bd72dec0f52e6006ce0 (patch) | |
tree | dd446530eae2eadefe0c8efcd6b7213ff4b552c6 /target_explorer/plugins/org.eclipse.tcf.te.ui.controls | |
parent | 8d2fdca43edc4a79dcf86e06548fb8f92f3a3ae9 (diff) | |
download | org.eclipse.tcf-4bb8e30d69a4451b945a9bd72dec0f52e6006ce0.tar.gz org.eclipse.tcf-4bb8e30d69a4451b945a9bd72dec0f52e6006ce0.tar.xz org.eclipse.tcf-4bb8e30d69a4451b945a9bd72dec0f52e6006ce0.zip |
Target Explorer: Code changes for the feedbacks over Find feature.
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.ui.controls')
-rw-r--r-- | target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/validator/NumberValidator.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/validator/NumberValidator.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/validator/NumberValidator.java index 9178c2dd9..929039e63 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/validator/NumberValidator.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.controls/src/org/eclipse/tcf/te/ui/controls/validator/NumberValidator.java @@ -41,7 +41,20 @@ public class NumberValidator extends RegexValidator { * If less than zero the value is set to INTEGER.MAX_VALUE. */ public NumberValidator(int min, int max) { - this(NO_ATTR, NUMBER_REGEX, min, max); + this(NO_ATTR, min, max); + } + + /** + * Constructor + * + * @param attributes The attributes + * @param min The lower boundary of the allowed input range. + * If less than zero the value is set to 0. + * @param max The upper boundary of the allowed input range. + * If less than zero the value is set to INTEGER.MAX_VALUE. + */ + public NumberValidator(int attributes, int min, int max) { + this(attributes, NUMBER_REGEX, min, max); } /** |