Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IFolder.findMember()


          for(int i=0;i<templateProposals.length;i++){
            IResource resource = null;
            if(dir!=null){
              templateProposals[i] = dir + "/" + templateProposals[i];
            }
            resource = folder.findMember(templateProposals[i]);
            if(resource!=null && resource.exists() && resource instanceof IFile){
              return templateProposals[i];
            }
          }
        }
View Full Code Here


      // loop upwards through the parents as long as we do not cross the project boundary
      while (dir.exists() && dir.getProject() != null && dir.getProject() != dir) {
        // see if pom.xml exists
        if (dir.getType() == IResource.FOLDER) {
          IFolder folder = (IFolder) dir;
          if (folder.findMember(IMavenConstants.POM_FILE_NAME) != null) {
            return folder;
          }
        }
        else if (dir.getType() == IResource.FILE) {
          if (((IFile) dir).getName().equals(IMavenConstants.POM_FILE_NAME)) {
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.