org.eclipse.rse.ui.validators
Class ValidatorProfileName
java.lang.Object
org.eclipse.rse.ui.validators.ValidatorUniqueString
org.eclipse.rse.ui.validators.ValidatorFolderName
org.eclipse.rse.ui.validators.ValidatorProfileName
- All Implemented Interfaces:
- IInputValidator, ICellEditorValidator, ISystemValidator, ISystemValidatorUniqueString
public class ValidatorProfileName
- extends ValidatorFolderName
- implements ISystemValidator
This class is used in dialogs that prompt for a profile name.
Relies on Eclipse supplied method to test for folder name validity.
The IInputValidator interface is used by jface's
InputDialog class and numerous other platform and system classes.
| Methods inherited from class org.eclipse.rse.ui.validators.ValidatorUniqueString |
doMessageSubstitution, getExistingNamesList, getSystemMessage, getSystemMessageText, isValid, isValid, quotedToLowerCase, setCaseSensitive, setErrorMessages, setExistingNamesList, setExistingNamesList, setUseUpperCase, validate |
MAX_PROFILENAME_LENGTH
public static final int MAX_PROFILENAME_LENGTH
- See Also:
- Constant Field Values
ValidatorProfileName
public ValidatorProfileName(Collection existingNameList)
- The collection of existing names can be null if this is not a rename operation.
- Parameters:
existingNameList - the collection of names to compare against.
This will not be modified by the validator.
getMaximumNameLength
public int getMaximumNameLength()
- Return the max length for profiles: 100
- Specified by:
getMaximumNameLength in interface ISystemValidator- Overrides:
getMaximumNameLength in class ValidatorFolderName
isSyntaxOk
public SystemMessage isSyntaxOk(String newText)
- Parent intercept to ensure no reserved names are used.
- Overrides:
isSyntaxOk in class ValidatorFolderName
Copyright (c) IBM Corporation and others 2000, 2012. All Rights Reserved.