Package org.eclipse.wst.common.componentcore.resources

Examples of org.eclipse.wst.common.componentcore.resources.IVirtualContainer


    return getValidationMessages().size() == 0;

  }

    private void validateFileRelativeToWebRoot(String value) {
    IVirtualContainer webRoot = getWebRoot();
    if (! webRoot.exists()){
      getValidationMessages().add(new ValidationMessage( Messages.WebPathType_1));
    }
    else {
      IVirtualFile file = webRoot.getFile(new Path(value));
      if (!file.exists()) {
        //was this a valid file path string, or bogus url?
        getValidationMessages().add(new ValidationMessage(Messages.WebPathType_2));
      }                 
      //we could also validate the expected file-extensions from meta data
View Full Code Here


   
  }

  private IVirtualContainer getWebRoot()
    {
        IVirtualContainer webRoot =
            ComponentCore.createComponent(getProject()).getRootFolder();
                
        return webRoot;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.common.componentcore.resources.IVirtualContainer

Copyright © 2018 www.massapicom. 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.