Examples of validateName()


Examples of org.eclipse.core.resources.IWorkspace.validateName()

    } catch (CoreException e) {
      return false;
    }
    if (projectName.length() > 0) {
      IWorkspace workspace = ResourcesPlugin.getWorkspace();
      IStatus status = workspace.validateName(projectName,
          IResource.PROJECT);
      if (status.isOK()) {
        IProject project = ResourcesPlugin.getWorkspace().getRoot()
            .getProject(projectName);
        if (!project.exists()) {
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace.validateName()

       
        // Do not allow a closed project to be selected
        IPath fullPath = resourceGroup.getContainerFullPath();
        if (fullPath != null) {
            String projectName = fullPath.segment(0);
            IStatus isValidProjectName = workspace.validateName(projectName, IResource.PROJECT);
            if(isValidProjectName.isOK()) {
                IProject project = workspace.getRoot().getProject(projectName);
                if(!project.isOpen()) {
                    setErrorMessage(IDEWorkbenchMessages.SaveAsDialog_closedProjectMessage);
                    return false;
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace.validateName()

                    return false;
                }
            }
        }
       
        IStatus result = workspace.validateName(resourceName, IResource.FILE);
        if (!result.isOK()){
            setErrorMessage(result.getMessage());
            return false;
        }
       
View Full Code Here

Examples of org.jitterbit.integration.data.ProjectNameValidator.validateName()

    private String getNewProjectName(File dir) throws CommandException {
        try {
            String projectName = dir.getName();
            ProjectNameValidator validator = new ProjectNameValidator();
            validator.validateName(projectName);
            return projectName;
        } catch (IllegalNameException ex) {
            throw new CommandException(ex.getMessage());
        }
    }
View Full Code Here

Examples of org.jitterbit.util.name.NameValidator.validateName()

        actionListeners.add(lst);
    }

    public void validateProjectName() throws IllegalNameException {
        NameValidator validator = NameValidatorStore.getInstance().get(IntegrationProject.class);
        validator.validateName(nameField.getValue());
    }

    public void addValidInputSensor(Enablable e) {
        TextEnablerCondition condition = new NonEmptyTextEnablerCondition(true);
        projectNameEnabler.addDependency(e, condition);
View Full Code Here

Examples of org.netbeans.modules.php.wordpress.validators.WordPressDirectoryNameValidator.validateName()

        if (descriptor == null || panel == null) {
            return;
        }
        String childThemeName = getPanel().getChildDirectoryName();
        WordPressDirectoryNameValidator validator = new WordPressDirectoryNameValidator();
        ValidationResult result = validator.validateName(childThemeName)
                .validateExistingName(childThemeName, themes)
                .getResult();

        // errors
        List<ValidationResult.Message> errors = result.getErrors();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.