Package org.eclipse.core.resources

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


       
        project.createOrUpdateFile(Path.fromPortableString("res/hello.txt"), new ByteArrayInputStream(
                "goodbye, world".getBytes()));
       
        assertThat("Dir not under content sync dir can not be exported",
                new ContentResourceTester().test(contentProject.findMember("res"), "canBeExported", null, null), equalTo(false));
        assertThat("File not under content sync dir can not be exported",
                new ContentResourceTester().test(contentProject.findMember("res/hello.txt"), "canBeExported", null, null), equalTo(false));
       
       
    }
View Full Code Here


                "goodbye, world".getBytes()));
       
        assertThat("Dir not under content sync dir can not be exported",
                new ContentResourceTester().test(contentProject.findMember("res"), "canBeExported", null, null), equalTo(false));
        assertThat("File not under content sync dir can not be exported",
                new ContentResourceTester().test(contentProject.findMember("res/hello.txt"), "canBeExported", null, null), equalTo(false));
       
       
    }

}
View Full Code Here

            initializeBuilder(notifier);

            // TODO validate source and include directories
            final ErlangProjectProperties properties = erlProject.getProperties();
            final IPath out = properties.getOutputDir();
            final IResource outr = project.findMember(out);
            if (outr != null) {
                try {
                    outr.setDerived(true, null);
                    outr.refreshLocal(IResource.DEPTH_ZERO, null);
                } catch (final CoreException e) {
View Full Code Here

            MarkerUtils.removeProblemMarkersFor(project);
            notifier.worked(1);

            // TODO use project config!
            // XXX how do we know what make uses?
            final IResource ebin = project.findMember("ebin");
            if (ebin == null) {
                project.getFolder("ebin").create(true, true, null);
            }

            final ProgressCallback callback = new ProgressCallback() {
View Full Code Here

        IResource res = null;
        IResource webRes = null;
        if (aimFileName.indexOf("/") > -1)
          aimNameShort = aimFileName.substring(aimFileName
              .lastIndexOf("/") + 1);
        res = activeProject.findMember(aimFileName
            .substring(("/" + activeProject.getName()).length()));
        if(res != null)
          this.partenerFile = aimFileName;
       
        searchPartenerFile(activeProject, aimNameShort);
View Full Code Here

        if(res != null)
          this.partenerFile = aimFileName;
       
        searchPartenerFile(activeProject, aimNameShort);
        if (this.partenerFile != null) {
          res = activeProject.findMember(partenerFile
              .substring(("/" + activeProject.getName())
                  .length()));
        }
        if(this.webFile != null){
          webRes = activeProject.findMember(webFile.substring(("/" + activeProject.getName())
View Full Code Here

          res = activeProject.findMember(partenerFile
              .substring(("/" + activeProject.getName())
                  .length()));
        }
        if(this.webFile != null){
          webRes = activeProject.findMember(webFile.substring(("/" + activeProject.getName())
                  .length()));
        }

        if (res != null && res.getType() == IResource.FILE)
          results.addAll(getMessageProposals(prefix,
View Full Code Here

                    if(appName != null && tapestryFilter)
                      break;
                }
            if(appName != null && tapestryFilter){
              String appMessageFile = webFile.substring(0, webFile.lastIndexOf("/")) + "/" +appName + ".properties";
              res = activeProject.findMember(appMessageFile
                  .substring(("/" + activeProject.getName())
                      .length()));
              if (res != null && res.getType() == IResource.FILE)
                results.addAll(getMessageProposals(prefix,
                    context.getViewer(), context.getInvocationOffset(),
View Full Code Here

        IProject activeProject = file.getProject();
        aimFileName = fileName.substring(0, fileName.length() - 4) + ".java";
        IResource res = null;
        if (aimFileName.indexOf("/") > -1)
          aimNameShort = aimFileName.substring(aimFileName.lastIndexOf("/") + 1);
        res = activeProject.findMember(aimFileName.substring(("/" + activeProject.getName()).length()));
        if (res == null) {
          searchPartenerFile(activeProject, aimNameShort);
          if (this.partenerFile != null) {
            res = activeProject
                .findMember(partenerFile.substring(("/" + activeProject.getName()).length()));
View Full Code Here

          aimNameShort = aimFileName.substring(aimFileName.lastIndexOf("/") + 1);
        res = activeProject.findMember(aimFileName.substring(("/" + activeProject.getName()).length()));
        if (res == null) {
          searchPartenerFile(activeProject, aimNameShort);
          if (this.partenerFile != null) {
            res = activeProject
                .findMember(partenerFile.substring(("/" + activeProject.getName()).length()));
          }
        }

        if (res != null && res.getType() == IResource.FILE)
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.