Package org.eclipse.jface.dialogs
Interface IInputValidator
-
public interface IInputValidatorThe IInputValidator is the interface for simple validators.- See Also:
InputDialog
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringisValid(String newText)Validates the given string.
-
-
-
Method Detail
-
isValid
String isValid(String newText)
Validates the given string. Returns an error message to display if the new text is invalid. Returnsnullif there is no error. Note that the empty string is not treated the same asnull; it indicates an error state but with no message to display.- Parameters:
newText- the text to check for validity- Returns:
- an error message or
nullif no error
-
-