Package org.eclipse.core.resources

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


        //make the cdf file name, the is a looming issue here if the resource has cex in it
        String cdfName = cex.getName().replace("cex", "cdf");
        //find the containing folder
        IFolder folder = (IFolder)cex.getParent();
        //find the dcdf file
        IFile cdf = (IFile)folder.findMember(cdfName);
        ToolClass toolClass = ToolClass.fetch(cdf);
        if (action.getId().equalsIgnoreCase(SUPER_CDF_ID)){
          toolClass = toolClass.getToolSuperClass();
        }
        showInEditor(toolClass);
View Full Code Here


       */
      List<IFolder> sourceFolders = ToolProjectSupport.getSourceFolders(project);
      for (IFolder projectsFolder : sourceFolders){
        IFolder planFolder = (IFolder)projectsFolder.findMember(planName);
        if (planFolder != null){
          IResource clsResource = planFolder.findMember(soName + ".cdf");
          if (clsResource != null){
            ToolServiceObject 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){
            ToolServiceObject cls = plan.findSO(soName);
            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){
            ToolServiceObject cls = plan.findSO(soName);
            if (cls!= null)
View Full Code Here

            if (!planDir.exists()){
              planDir.create(false, true, null);

            }
            repos.exportPlanAndComponents(plan.getName(), planDir.getLocation().toOSString(), true);
            IResource planResource = planDir.findMember(plan.getName() + ".prx");
            planDir.setPersistentProperty(ToolProjectSupport.toolPlanNameQualifiedName, plan.getName());
          } else {
            if (!ToolProjectSupport.forteLibrariesSet.contains(plan.getName())){ //this skips over HTTP
              IFolder librariesDir = (IFolder)project.findMember(ToolProjectSupport.LIBRARY_FOLDER_NAME);
              repos.exportPlanAsPEX(plan.getName(),  librariesDir.getLocation().toPortableString());
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

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.