|
org.eclipse.rse.ui.validators
Class ValidatorFilterName
java.lang.Object
org.eclipse.rse.ui.validators.ValidatorUniqueString
org.eclipse.rse.ui.validators.ValidatorFilterName
-
All Implemented Interfaces:
-
IInputValidator,
ICellEditorValidator,
ISystemValidator,
ISystemValidatorUniqueString
-
public class ValidatorFilterName
- extends
ValidatorUniqueString
- implements
ISystemValidator
This class is used in dialogs that prompt for filter name. Filter names
have to be unique.
The IInputValidator interface is implemented by our parent and it
is used by jface's InputDialog class and property sheet window.
Methods inherited from class org.eclipse.rse.ui.validators.
ValidatorUniqueString
|
doMessageSubstitution,
getExistingNamesList,
getSystemMessage,
getSystemMessageText,
isSyntaxOk,
isValid,
isValid,
quotedToLowerCase,
setCaseSensitive,
setErrorMessages,
setExistingNamesList,
setExistingNamesList,
setUseUpperCase,
validate
|
MAX_FILTERNAME_LENGTH
public static final int MAX_FILTERNAME_LENGTH
-
See Also:
-
Constant Field Values
ValidatorFilterName
public ValidatorFilterName(
Collection existingList)
- Constructor accepting a Collection.
-
Parameters:
-
existingList - a collection of existing filter names to compare against.
The collection will not be modified by the validator.
Note that toString() is used to get the string from each item.
ValidatorFilterName
public ValidatorFilterName(
String[] existingList)
- Constructor accepting an Array.
-
Parameters:
-
existingList - array containing list of existing strings to compare against.
toString
public
String toString()
-
-
Overrides:
-
toString
in class
ValidatorUniqueString
-
checkForBadCharacters
protected boolean checkForBadCharacters(
String newText)
- Overridable extension point to check for invalidate characters beyond what Eclipse checks for
-
-
-
Returns:
- true if valid, false if not
getMaximumNameLength
public int getMaximumNameLength()
- Return the max length for filters: 100
-
-
Specified by:
-
getMaximumNameLength
in interface
ISystemValidator
-
Overrides:
-
getMaximumNameLength
in class
ValidatorUniqueString
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.
|
|