Examples of members()


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

    }

    private void ensureNoAppSrcExists() {
        final IFolder folder = (IFolder) prj.findMember("src");
        try {
            final IResource[] srcs = folder.members();
            for (final IResource f : srcs) {
                assertThat("An .app.src exists: " + f.getName(),
                        !f.getName().endsWith(".app.src"));
            }
        } catch (final CoreException e) {
View Full Code Here

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

        // ignore other dirs than 'src'
        final IPath src = new Path("src");
        final IFolder dir = (IFolder) project.findMember(src);
        if (dir != null) {
            try {
                for (final IResource file : dir.members()) {
                    final String name = file.getName();
                    if (name.endsWith(".app.src")) {
                        final String appSrc = file.getLocation().toPortableString();
                        final String destPath = outPath + "/"
                                + name.substring(0, name.lastIndexOf('.'));
View Full Code Here

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

       if(eachFile.getType() == IResource.FILE && eachFile.getName().equals(TapestryContants.WEB_XML)){
        this.webXMLPath = eachFile.getFullPath().toString();
        return;
      } else if (eachFile.getType() == IResource.FOLDER) {
        IFolder file = (IFolder) eachFile;
        travelAllFolder(file.members());
      }
    }
  }
 
  private String parseRootPackage(IProject project){
View Full Code Here

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

        this.webFile = eachFile.getFullPath().toString();
        if(this.partenerFile != null)
          return;
      } else if (eachFile.getType() == IResource.FOLDER) {
        IFolder file = (IFolder) eachFile;
        travelAllFolder(file.members(), fileName);
      }
    }
  }

  private Image getTapestryImage() {
View Full Code Here

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

   
    IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
    IFolder folder = root.getFolder(javafile.getFullPath().removeLastSegments(1));
    IResource[] members;
    try {
      members = folder.members();
    } catch (CoreException e1) {
      System.err.print("Folder members error");
      return;
    }
   
View Full Code Here

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

      IResource eachFile = fileList[i];
      if (eachFile.getType() == IResource.FILE && eachFile.getName().equals(fileName)) {
        this.partenerFile = eachFile.getFullPath().toString();
      } else if (eachFile.getType() == IResource.FOLDER) {
        IFolder file = (IFolder) eachFile;
        travelAllFolder(file.members(), fileName);
      }
    }
  }

  private Image getTapestryImage() {
View Full Code Here

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

      if (eachFile.getType() == IResource.FILE
          && eachFile.getName().equals(fileName)) {
        this.partenerFile = eachFile.getFullPath().toString();
      } else if (eachFile.getType() == IResource.FOLDER) {
        IFolder file = (IFolder) eachFile;
        travelAllFolder(file.members(), fileName);
      }
    }
  }

  private Image getTapestryImage() {
View Full Code Here

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

  public Object[] getChildren(Object o) {
    IFolder folder = (IFolder) o;
   
    try {
      return folder.members();
    } catch (CoreException e) {
      // TODO: log it
      e.printStackTrace();
      return null;
    }
View Full Code Here

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

    try {
      HDFSFileStore store = (HDFSFileStore) EFS.getStore(r.getLocationURI());
      switch (r.getType()) {
      case IResource.FOLDER:
        IFolder folder = (IFolder) r;
        IResource[] members = folder.members();
        if (members != null) {
          for (int mc = 0; mc < members.length; mc++) {
            discardDownloadResource(members[mc]);
          }
        }
View Full Code Here

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

        UploadFileJob ufj = new UploadFileJob(r);
        ufj.schedule();
        break;
      case IResource.FOLDER:
        IFolder folder = (IFolder) r;
        IResource[] members = folder.members();
        if (members != null) {
          for (int mc = 0; mc < members.length; mc++) {
            uploadResource(members[mc]);
          }
        }
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.