Package org.eclipse.core.resources

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


        }
        /*
         * finally we check in the user libraries
         */
        libFolder = (IFolder)project.findMember(ToolProjectSupport.LIBRARY_FOLDER_NAME);
        resource = libFolder.findMember(planName + ".pex");
        if (resource != null){
          ToolPlan plan = ToolPlan.getInstance(resource);
          if (plan != null){
            ToolServiceObject cls = plan.findSO(soName);
            if (cls!= null)
View Full Code Here


      for (IFolder projectsFolder : sourceFolders){
        IFolder planFolder = (IFolder)projectsFolder.findMember(planName);
        if (planFolder != null){
          try {
            planFolder.refreshLocal(IResource.DEPTH_ONE, null);
            IResource clsResource = planFolder.findMember(className + ".cdf");
            if (clsResource != null){
              ToolClass cls = fetch((IFile)clsResource);
              if (cls!= null)
                return cls;
            }
View Full Code Here

      }
      /*
       * then we check on the forte libraries
       */
      IFolder libFolder = (IFolder)project.findMember(ToolProjectSupport.UDS_LIBRARY_FOLDER_NAME);
      IResource resource = libFolder.findMember(planName + ".pex");
      if (resource != null){
        ToolPlan plan = ToolPlan.getInstance(resource);
        if (plan != null){
          ToolClass cls = plan.findClass(className);
          if (cls!= null)
View Full Code Here

      }
      /*
       * finally we check in the user libraries
       */
      libFolder = (IFolder)project.findMember(ToolProjectSupport.LIBRARY_FOLDER_NAME);
      resource = libFolder.findMember(planName + ".pex");
      if (resource != null){
        ToolPlan plan = ToolPlan.getInstance(resource);
        if (plan != null){
          ToolClass cls = plan.findClass(className);
          if (cls!= null)
View Full Code Here

   
    IFolder folder = ((IFolder)this.file.getParent());
    String name = this.file.getName();
    // Method File
    String cexName = name.substring(0, name.lastIndexOf('.')) + ".cex";
    IResource cexResource = folder.findMember(cexName);
    if (cexResource != null){
      this.implementationFile = (IFile)cexResource;
      /*
       * if we are working with a whole class file then
       * we set the method file to the class file
View Full Code Here

      this.implementationFile = this.file;
    }

    // Window file
    String fswName = name.substring(0, name.lastIndexOf('.')) + ".fsw";
    IResource fswResource = folder.findMember(fswName);
    if (fswResource != null){
      this.windowFile = (IFile)fswResource;
    }
    String source = document.get();
    parse(source);
View Full Code Here

      IProject project = this.getFile().getProject();
      List<IFolder> sourceFolders = ToolProjectSupport.getSourceFolders(project);
      for (IFolder sourceFolder : sourceFolders){
        IFolder projectFolder = (IFolder)sourceFolder.findMember(projectName);
        if (projectFolder != null){
          IFile superCDF = (IFile)projectFolder.findMember(className + ".cdf");
          superClass = ToolClass.fetch(superCDF);
        }
      }
    }
    return superClass;
View Full Code Here

          folder.refreshLocal(IResource.DEPTH_INFINITE, null);

          IFolder planFolder = (IFolder) folder.findMember(name);
          if (planFolder == null)
            break;
          IResource resource = planFolder.findMember(name + ".prx");
          if (resource == null)
            break;
          model = getInstance(resource);
          if (model != null){
            return model;
View Full Code Here

      IFolder folder = ((IFolder)((IFile)object).getParent());
      String name = ((IFile)object).getName();
     
      // Service Object
      String cexName = name.substring(0, name.lastIndexOf('.')) + ".cex";
      if (folder.findMember(cexName) == null){
        return ToolPlugin.getImage("icons/service_object.gif");
      }
     
      // Window Class
      String fswName = name.substring(0, name.lastIndexOf('.')) + ".fsw";
View Full Code Here

        return ToolPlugin.getImage("icons/service_object.gif");
      }
     
      // Window Class
      String fswName = name.substring(0, name.lastIndexOf('.')) + ".fsw";
      if (folder.findMember(fswName) != null){
        return ToolPlugin.getImage("icons/window_class.gif");
      }
      // Class
      return ToolPlugin.getImage("icons/class.gif");
    }
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.