Package org.eclipse.core.resources

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


      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


    IProject project = type.getResource().getProject();
    String html = ClickUtils.getHTMLfromClass(project, type.getFullyQualifiedName());
    if(html!=null){
      String root = ClickUtils.getWebAppRootFolder(project);
      IFolder folder = project.getFolder(root);
      IResource resource = folder.findMember(html);
      if(resource!=null && resource instanceof IFile && resource.exists()){
        return (IFile)resource;
      }
    }
    return null;
View Full Code Here

      }
      IFile modelGroupFile = parentContainer.getFile(new Path(baseName + ".eomodelgroup"));
      modelGroupModel.writeToFile(modelGroupFile, monitor);
      _page.setResourceToReveal(modelGroupFile);
    } else {
      _page.setResourceToReveal(modelFolder.findMember("index.eomodeld"));
    }
  }
}
View Full Code Here

      } else if (this.isApplication()) { // must be application
        IContainer wdFolder = getWorkingDirFolder();
        if (wdFolder != null && wdFolder.exists()) {
          IFolder javaFolder = wdFolder.getFolder(new Path("Contents/Resources/Java"));
          if (this.isAntBuilderInstalled() || (WOLipsNatureUtils.getNature(project) instanceof AntApplicationNature)) {
            resource = javaFolder.findMember(wdFolder.getName().substring(0, wdFolder.getName().length() - 4).toLowerCase() + ".jar");
            if (!resource.exists())
              resource = getJar("", ".woa/Contents/");
          } else if (this.isIncrementalBuilderInstalled()) {
            resource = javaFolder;
          }
View Full Code Here

      monitor.worked(2);
      String defaultDescriptorLocation = RutaProjectUtils.getDefaultDescriptorLocation();
      IFolder folder = container.getProject().getFolder(defaultDescriptorLocation);
      for (IPath iPath : generateResources) {
        iPath = iPath.makeRelativeTo(folder.getLocation());
        IResource findMember = folder.findMember(iPath);
        if (findMember != null) {
          findMember.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
          findMember.getParent().refreshLocal(IResource.DEPTH_ONE, new NullProgressMonitor());
        }
View Full Code Here

      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

   
    // Find in workspace
    if (workspaceResource != null) {
      if (workspaceResource.getType() == IResource.FOLDER) {
        IFolder folder = (IFolder) workspaceResource;
        IFile r = (IFile) folder.findMember(searchedPath + "/" + searchedFileName);
        if (r != null && r.exists()) {
          return new FileEditorInput(r);
        }
      } else {
        // Don't know what to do here
View Full Code Here

    subFolder.create(true, true, null);
    // Create new file
    write(new File(subFolder.getLocation().toFile().getAbsolutePath(),
        TEST_FILE), "Something");
    project.refreshLocal(IResource.DEPTH_INFINITE, null);
    IResource file = subFolder.findMember(TEST_FILE);

    IDecoratableResource[] expectedDRs = new IDecoratableResource[] {
        new TestDecoratableResource(project).tracked().dirty(),
        new TestDecoratableResource(folder).dirty(),
        new TestDecoratableResource(subFolder).dirty(),
View Full Code Here

    IFolder subFolder2 = folder.getFolder(SUB_FOLDER2);
    subFolder2.create(true, true, null);
    write(new File(subFolder2.getLocation().toFile().getAbsolutePath(),
        TEST_FILE), "Something");
    project.refreshLocal(IResource.DEPTH_INFINITE, null);
    IResource file = subFolder2.findMember(TEST_FILE);

    IDecoratableResource[] expectedDRs = new IDecoratableResource[] {
        new TestDecoratableResource(project).tracked().dirty(),
        new TestDecoratableResource(folder).dirty(),
        new TestDecoratableResource(subFolder).ignored(),
View Full Code Here

    IProject project = type.getResource().getProject();
    String html = ClickUtils.getHTMLfromClass(project, type.getFullyQualifiedName());
    if(html!=null){
      String root = ClickUtils.getWebAppRootFolder(project);
      IFolder folder = project.getFolder(root);
      IResource resource = folder.findMember(html);
      if(resource!=null && resource instanceof IFile && resource.exists()){
        return (IFile)resource;
      }
    }
    return null;
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.