Package org.eclipse.core.resources

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


      return createStatus(NewWizardMessages.NewJavaProjectWizardPageOne_Message_enterProjectName,
          missingDataStatus);
    }

    // check whether the project name is valid
    final IStatus nameStatus = workspace.validateName(name, IResource.PROJECT);
    if (!nameStatus.isOK()) {
      setAreaComplete(false);
      return createStatus(nameStatus.getMessage(), IStatus.ERROR);
    }
View Full Code Here


        setPageComplete(false);
        return;
      }

      // check whether the project name is valid
      final IStatus nameStatus = workspace.validateName(name, IResource.PROJECT);
      if (!nameStatus.isOK()) {
        setErrorMessage(nameStatus.getMessage());
        setPageComplete(false);
        return;
      }
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.