Package org.eclipse.core.resources

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


          } else {
            // if project doesn't exist, do not open and recreate it as it means that there are no external folders
            return this.folders = Collections.synchronizedMap(tempFolders);
          }
        }
        IResource[] members = project.members();
        for (int i = 0, length = members.length; i < length; i++) {
          IResource member = members[i];
          if (member.getType() == IResource.FOLDER && member.isLinked() && member.getName().startsWith(LINKED_FOLDER_NAME)) {
            IPath externalFolderPath = member.getLocation();
            tempFolders.put(externalFolderPath, member);
View Full Code Here


    // Using the . as a separator, get the CFC name from the last token

    String cfcname = splitFullyQualifiedName(fullyQualifiedCfc) + ".cfc";

    try {
      IResource firstChildren[] = project.members();

      // To make this function quicker, doing two loops. The first is through the files,
      // Then, we go into the directory, why? becuase I dont want to loop through the whole directory
      // tree if the file is in the first directory!
View Full Code Here

  private void fileParser(IResource projectOrFolder){
   
    if (projectOrFolder instanceof IProject) {
      IProject projectToParse = (IProject) projectOrFolder;
      try {
        IResource[] resources = projectToParse.members();
        for (int i = 0; i < resources.length; i++) {
          if (resources[i] instanceof IFile) {
            //check the file and add it to the list, as well as marking it as a framework file
            checkAndAddResource(resources[i]);
          }
View Full Code Here

    if (projectOrFolder instanceof IProject) {
      IProject projectToScan = (IProject) projectOrFolder;
      //check and add it
      checkAndAddResource(projectOrFolder);
      try {
        IResource[] resources = projectToScan.members();
        for (int i = 0; i < resources.length; i++) {
          folderParser(resources[i]);
        }
      } catch (CoreException e) {
        // TODO Auto-generated catch block
View Full Code Here

     
      IResource[] resources = new IResource[]{};
      if (element instanceof IProject) {
        IProject projectFolder = (IProject) element;
        try {
          resources = projectFolder.members();
        } catch (CoreException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        }
      }
View Full Code Here

  private void parseProject(IResource resource) throws CoreException{
    if (resource instanceof IProject) {
      IProject proj = (IProject)resource;
      checkAndAddResource(proj);
     
      IResource[] resources = proj.members();
      for (int i = 0; i < resources.length; i++) {
        if(resources[i] instanceof IFile){
          checkAndAddResource(resources[i]);
        }
        else{
View Full Code Here

        CFMapping mappingObject = new CFMapping(mappingCandidate, "/");
        mappings.add(mappingObject);
       
      }
      try {
        IResource[] resources = mappingCandidate.members();
        for (int i = 0; i < resources.length; i++) {
          findMappings(resources[i], mappings);
        }
       
      } catch (CoreException e) {
View Full Code Here

      String[] matches = ProcessingUtilities.match(tsre.toString(), mess);
      IResource errorFile = null;
      int errorLine = -1;
      if (matches != null) {
        errorLine = Integer.parseInt(matches[1]) - 1;
        for (IResource file : sketch.members()) {
          if ("pde".equalsIgnoreCase(file.getFileExtension())) {
            int low = (Integer) file.getSessionProperty(new QualifiedName(BUILDER_ID, "preproc start"));
            int high = (Integer) file.getSessionProperty(new QualifiedName(BUILDER_ID, "preproc end"));
            if (low <= errorLine && high > errorLine) {
              errorFile = file;
View Full Code Here

       * an unclosed, double quote mark (").
       */
      IResource errorFile = null; // if this remains null, the error is reported back on the sketch itself with no line
      int errorLine = re.getCodeLine() + 1; // always reported 1 line early

      for( IResource file : sketch.members()) {
        if ("pde".equalsIgnoreCase(file.getFileExtension())) {
          int low = (Integer) file.getSessionProperty(new QualifiedName(BUILDER_ID, "preproc start"));
          int high = (Integer) file.getSessionProperty(new QualifiedName(BUILDER_ID, "preproc end"));
          if (low <= errorLine && high > errorLine) {
            errorFile = file;
View Full Code Here

     */

    StringBuffer bigCode = new StringBuffer();
    int bigCount = 0; // line count

    for (IResource file : sketch.members()) {
      if ("pde".equalsIgnoreCase(file.getFileExtension())) {
        file.setSessionProperty(new QualifiedName(BUILDER_ID, "preproc start"), bigCount);
        String content = ProcessingUtilities.readFile((IFile) file);
        bigCode.append(content);
        bigCode.append("\n");
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.