Package com.subhajit.eclipse.entities

Examples of com.subhajit.eclipse.entities.EclipseProject


  private File computeDetailedSequenceDiagramFileName(
      IJavaProject javaProject, String className,
      IMethod sourceMethod) throws IOException, JDOMException,
      InterruptedException {
    EclipseProject eclipseProject = new EclipseProject(ProjectUtils
        .getProjectFile(javaProject));
    File diagramsDir = new File(eclipseProject.getFile().getParentFile(),
        ".diagrams");
    FileUtils.mkdirs(diagramsDir);
    return new File(diagramsDir, className.replace('.', '_') + "_"
        + sourceMethod.getElementName() + ".png");
  }
View Full Code Here


      throws IOException, JDOMException, InterruptedException {
    Set<File> projectLocations = getProjectLocations();
    Set<EclipseProject> allEclipseProjects = new HashSet<EclipseProject>();
    for (File projectLocation : projectLocations) {
      try {
        allEclipseProjects.add(new EclipseProject(new File(
            projectLocation.getAbsolutePath(), ".project")));
      } catch (Exception exc) {
        // This project could not be loaded correctly.
        System.out
            .println("While trying to create EclipseProject from project location "
View Full Code Here

          progress.setRange(0, 2);
          progress.increment(1, "Computing project dependencies");
        }
        final File projectFile = ProjectUtils
            .getProjectFile(javaProject);
        EclipseProject eclipseProject = new EclipseProject(projectFile);
        EclipseMetafile[] metafiles = eclipseProject.getAllDependants();
        List<IJavaProject> projects = new ArrayList<IJavaProject>();
        if (progress != null) {
          progress.setRange(0, metafiles.length);
        }
        for (EclipseMetafile metafile : metafiles) {
View Full Code Here

            .createTemporaryDirectory(temporaryDirectories);
        final File zipDir = CreateJarUtils
            .createTemporaryDirectory(temporaryDirectories);
        final List<String> mainClasses = new ArrayList<String>();

        final EclipseProject eclipseProject = new EclipseProject(
            ProjectUtils.getProjectFile(thisJavaProject));

        Map<String, Object> inputs = getCompileCodeLevels();
        if (inputs == null) {
          return;
View Full Code Here

        ctx.setFollowInvokedMethods(false);

        // Show source code lines.
        ctx.setShowSourceLines(true);
        // Find all relevant source code locations.
        EclipseProject eclipseProject = new EclipseProject(ProjectUtils
            .getProjectFile((IJavaProject) inputs.get("project")));
        ctx.setSourceCodeManager(new SourceCodeManager(eclipseProject
            .getSourcePaths()));
        ctx.setShowInstructions(false);

        ClassInfo classInfo = new ClassInfo(className, gen
            .getClassLoader());
View Full Code Here

    // return new URLClassLoaderX(EclipseProjectBuilder
    // .computeProjectOutputURLs(projectFile).toArray(
    // ZERO_LENGTH_URL_ARRAY), ProjectUtils.class
    // .getClassLoader());
    List<URL> urls = new ArrayList<URL>();
    EclipseProject project = new EclipseProject(projectFile);
    urls.add(project.getOutputDirectory().toURI().toURL());
    for (EclipseMetafile dependent : project.getAllDependants()) {
      if (dependent instanceof CompiledJar) {
        urls.add(((CompiledJar) dependent).getFile().toURI().toURL());
      } else if (dependent instanceof EclipseProject) {
        EclipseProject dependentProject = (EclipseProject) dependent;
        urls.add(dependentProject.getOutputDirectory().toURI().toURL());
      } else if (dependent instanceof EclipseClasspath) {
        // EclipseClasspath classpath = ( EclipseClasspath )dependent;
      }
    }
    return new URLClassLoaderX(urls.toArray(ZERO_LENGTH_URL_ARRAY));
View Full Code Here

TOP

Related Classes of com.subhajit.eclipse.entities.EclipseProject

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.