Package com.mountainminds.eclemma.core

Examples of com.mountainminds.eclemma.core.IClassFiles


  }
 
  private IPackageFragmentRoot[] getPackageFragmentRoots(Object[] classfiles) {
    Set roots = new HashSet();
    for (int i = 0; i < classfiles.length; i++) {
      IClassFiles cf = (IClassFiles) classfiles[i];
      if (includebinaries || !cf.isBinary()) {
        roots.addAll(Arrays.asList(cf.getPackageFragmentRoots()));
      }
    }
    return (IPackageFragmentRoot[]) roots
        .toArray(new IPackageFragmentRoot[roots.size()]);
  }
View Full Code Here


        .toArray(new IPackageFragmentRoot[roots.size()]);
  }

  private void updateCheckedStatus(Object root, boolean checked) {
    for (int i = 0; i < input.length; i++) {
      IClassFiles cf = input[i];
      if (Arrays.asList(cf.getPackageFragmentRoots()).contains(root)) {
        if (checked) {
          selectedclasses.add(cf);
        } else {
          selectedclasses.remove(cf);
        }
View Full Code Here

  }
 
  private IPackageFragmentRoot[] getPackageFragmentRoots(Object[] classfiles) {
    Set roots = new HashSet();
    for (int i = 0; i < classfiles.length; i++) {
      IClassFiles cf = (IClassFiles) classfiles[i];
      if (includebinaries || !cf.isBinary()) {
        roots.addAll(Arrays.asList(cf.getPackageFragmentRoots()));
      }
    }
    return (IPackageFragmentRoot[]) roots
        .toArray(new IPackageFragmentRoot[roots.size()]);
  }
View Full Code Here

        .toArray(new IPackageFragmentRoot[roots.size()]);
  }

  private void updateCheckedStatus(Object root, boolean checked) {
    for (int i = 0; i < input.length; i++) {
      IClassFiles cf = input[i];
      if (Arrays.asList(cf.getPackageFragmentRoots()).contains(root)) {
        if (checked) {
          selectedclasses.add(cf);
        } else {
          selectedclasses.remove(cf);
        }
View Full Code Here

  public void testGetAtAbsoluteLocation() throws Exception {
    store.add(rootSrc1);
    final String loc = javaProject1.project.getFolder("bin").getLocation()
        .toOSString();
    final IClassFiles classfiles = store.getAtAbsoluteLocation(loc);
    assertNotNull(classfiles);
    assertEquals(new Path("/projectA/bin"), classfiles.getLocation());
    assertEquals(1, classfiles.getPackageFragmentRoots().length);
    assertEquals(rootSrc1, classfiles.getPackageFragmentRoots()[0]);
  }
View Full Code Here

    List l = new ArrayList();
    IRuntimeClasspathEntry[] entries = JavaRuntime.computeUnresolvedRuntimeClasspath(configuration);
    entries = JavaRuntime.resolveRuntimeClasspath(entries, configuration);
    for (int i = 0; i < entries.length; i++) {
      if (entries[i].getClasspathProperty() == IRuntimeClasspathEntry.USER_CLASSES) {
        IClassFiles ic = findClassFiles(entries[i].getLocation());
        if (ic != null && (includebinaries || !ic.isBinary())) {
          l.add(ic);
        }
      }
    }
    IClassFiles[] arr = new IClassFiles[l.size()];
View Full Code Here

    List l = new ArrayList();
    IRuntimeClasspathEntry[] entries = JavaRuntime.computeUnresolvedRuntimeClasspath(configuration);
    entries = JavaRuntime.resolveRuntimeClasspath(entries, configuration);
    for (int i = 0; i < entries.length; i++) {
      if (entries[i].getClasspathProperty() == IRuntimeClasspathEntry.USER_CLASSES) {
        IClassFiles ic = findClassFiles(entries[i].getLocation());
        if (ic != null && (includebinaries || !ic.isBinary())) {
          l.add(ic);
        }
      }
    }
    IClassFiles[] arr = new IClassFiles[l.size()];
View Full Code Here

    List l = new ArrayList();
    IRuntimeClasspathEntry[] entries = JavaRuntime.computeUnresolvedRuntimeClasspath(configuration);
    entries = JavaRuntime.resolveRuntimeClasspath(entries, configuration);
    for (int i = 0; i < entries.length; i++) {
      if (entries[i].getClasspathProperty() == IRuntimeClasspathEntry.USER_CLASSES) {
        IClassFiles ic = findClassFiles(entries[i].getLocation());
        if (ic != null && (includebinaries || !ic.isBinary())) {
          l.add(ic);
        }
      }
    }
    IClassFiles[] arr = new IClassFiles[l.size()];
View Full Code Here

    return getPackageFragmentRoots(selectedclasses);
  }
 
  public void setSelection(IPackageFragmentRoot root, boolean selected) {
    for (int i = 0; i < allclasses.length; i++) {
      IClassFiles cf = allclasses[i];
      if (Arrays.asList(cf.getPackageFragmentRoots()).contains(root)) {
        if (selected) {
          selectedclasses.add(cf);
        } else {
          selectedclasses.remove(cf);
        }
View Full Code Here

    conf.setAttribute(
        ICoverageLaunchConfigurationConstants.ATTR_INPLACE_INSTRUMENTATION,
        inplace);
    List l = new ArrayList();
    for (Iterator i = selectedclasses.iterator(); i.hasNext(); ) {
      IClassFiles cf = (IClassFiles) i.next();
      l.add(cf.getLocation().toString());
    }
    conf.setAttribute(ICoverageLaunchConfigurationConstants.ATTR_INSTRUMENTATION_PATHS, l);
  }
View Full Code Here

TOP

Related Classes of com.mountainminds.eclemma.core.IClassFiles

Copyright © 2018 www.massapicom. 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.