Package org.eclipse.core.resources

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


        IFolder current = syncDir;
        for (int i = 0; i < repositoryImportRoot.segmentCount(); i++) {
            IPath repoPath = current.getProjectRelativePath().makeRelativeTo(syncDir.getProjectRelativePath())
                    .makeAbsolute();
            parseIgnoreFiles(current, repoPath.toPortableString());
            current = (IFolder) current.findMember(repositoryImportRoot.segment(i));
        }

    }

    private void recordNotIgnoredResources() throws CoreException {
View Full Code Here


            // TODO - move logic to serializationManager
            // possible .dir serialization holder
            if (resource.getType() == IResource.FOLDER && resource.getName().endsWith(".dir")) {
                IFolder folder = (IFolder) resource;
                IResource contentXml = folder.findMember(".content.xml");
                // .dir serialization holder ; nothing to process here, the .content.xml will trigger the actual work
                if (contentXml != null && contentXml.exists()
                        && serializationManager.isSerializationFile(contentXml.getLocation().toOSString())) {
                    return null;
                }
View Full Code Here

            IJavaProject javaProject = ProjectHelper.asJavaProject(project);

            IFolder outputFolder = (IFolder) project.getWorkspace().getRoot().findMember(javaProject.getOutputLocation());
            IPath outputLocation = outputFolder.getLocation();
            //ensure the MANIFEST.MF exists - if it doesn't then let the publish fail with a warn (instead of an error)
            IResource manifest = outputFolder.findMember("META-INF/MANIFEST.MF");
            if (manifest==null) {
                Activator.getDefault().getPluginLogger().warn("Project "+project+" does not have a META-INF/MANIFEST.MF (yet) - not publishing this time");
                Activator.getDefault().issueConsoleLog("InstallBundle", outputFolder.getLocation().toOSString(), "Project "+project+" does not have a META-INF/MANIFEST.MF (yet) - not publishing this time");
                monitor.done();
                setModulePublishState(module, IServer.PUBLISH_STATE_FULL);
View Full Code Here

            return null;
        }
        IFolder folder = ((SyncDir)root).getFolder();
        while(st.hasMoreTokens()) {
            String nodeStr = st.nextToken();
            IResource child = folder.findMember(nodeStr);
            if (child==null || !(child instanceof IFolder)) {
                break;
            } else {
                folder = (IFolder) child;
            }
View Full Code Here

        parentNames.add(childNodeName);
        for (Iterator<String> it = parentNames.iterator(); it
                .hasNext();) {
            String aParentName = it.next();
            String encodedParentName = DirNode.encode(aParentName);
            IResource member = folder.findMember(encodedParentName);
            if (member!=null && !(member instanceof IFolder)) {
                throw new CoreException(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "Could not find base folder for creating child. (2) Expected a folder at "+member));
            }
            if (member!=null && member.exists()) {
                folder = (IFolder) member;
View Full Code Here

                    final IResource resource = m.getResource();
                    files.add(resource.getLocation().toPortableString());
                } else {
                    final String moduleName = SystemConfiguration.withoutExtension(name);
                    final String beamName = moduleName + ".beam";
                    final IResource beam = ebin.findMember(beamName);
                    if (beam != null) {
                        files.add(beam.getLocation().toPortableString());
                        names.add(moduleName);
                    }
                }
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

    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

       */
      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

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.