Home
last modified time | relevance | path

Searched refs:validator (Results 1 – 14 of 14) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/resources/
DResourceNameValidatorTest.java34 ResourceNameValidator validator = ResourceNameValidator.create(true, in testValidator() local
36 assertTrue(validator.isValid("foo") == null); in testValidator()
37 assertTrue(validator.isValid("foo.xml") == null); in testValidator()
38 assertTrue(validator.isValid("Foo123_$") == null); in testValidator()
39 assertTrue(validator.isValid("foo.xm") == null); // For non-file types, . => _ in testValidator()
42 assertTrue(validator.isValid("") != null); in testValidator()
43 assertTrue(validator.isValid(" ") != null); in testValidator()
44 assertTrue(validator.isValid("foo bar") != null); in testValidator()
45 assertTrue(validator.isValid("1foo") != null); in testValidator()
46 assertTrue(validator.isValid("foo%bar") != null); in testValidator()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
DExtractIncludeWizard.java103 ResourceNameValidator validator = ResourceNameValidator.create(false, mProject, in validatePage() local
105 String message = validator.isValid(text); in validatePage()
DWrapInWizard.java124 ResourceNameValidator validator = ResourceNameValidator.create(false, mProject, in validatePage() local
126 String message = validator.isValid(id); in validatePage()
DExtractStyleWizard.java354 ResourceNameValidator validator = ResourceNameValidator.create(false, mProject, in validatePage() local
356 String message = validator.isValid(text); in validatePage()
DExtractIncludeRefactoring.java438 IInputValidator validator = ResourceNameValidator.create(true, mProject, LAYOUT); in getInitialName() local
440 if (validator.isValid(defaultName) != null) { // Already exists? in getInitialName()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/renamepackage/
DRenamePackageAction.java128 IInputValidator validator = new IInputValidator() { in promptNewName() local
147 validator); in promptNewName()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/
DClientRulesEngine.java172 IInputValidator validator = null; in displayInput() local
174 validator = new IInputValidator() { in displayInput()
193 validator) { in displayInput()
365 IInputValidator validator) {
368 return ResourceChooser.chooseResource(graphicalEditor, type, currentValue, validator);
395 IInputValidator validator = CyclicDependencyValidator.create(editor.getInputFile());
396 return displayResourceInput(ResourceType.LAYOUT.getName(), null, validator);
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/assetstudio/
DChooseAssetTypePage.java211 ResourceNameValidator validator = in validatePage() local
213 error = validator.isValid(outputName); in validatePage()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/
DResourceChooser.java649 ResourceNameValidator validator = ResourceNameValidator.create(true /*allowXmlExtension*/, in createNewFile() local
656 validator); in createNewFile()
941 String currentValue, IInputValidator validator) { in chooseResource() argument
944 if (validator != null) { in chooseResource()
947 chooser.setInputValidator(validator); in chooseResource()
/sdk/eclipse/
Ddictionary.txt342 validator
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/
DResourceHelper.java259 ResourceNameValidator validator = in canCreateResource() local
261 if (validator.isValid(name) != null) { in canCreateResource()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/
DNewTemplatePage.java615 IInputValidator validator = parameter.getValidator(mValues.project); in validatePage() local
616 if (validator != null) { in validatePage()
619 String error = validator.isValid(value); in validatePage()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/core/
DRenameResourceParticipant.java343 ResourceNameValidator validator = ResourceNameValidator.create(false, mProject, mType); in checkConditions() local
344 String error = validator.isValid(mNewName); in checkConditions()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/launch/junit/
DAndroidJUnitLaunchConfigurationTab.java891 TypedElementSelectionValidator validator = new TypedElementSelectionValidator( in chooseContainer() local
925 dialog.setValidator(validator); in chooseContainer()