Examples of EclipseProject


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

Examples of com.subhajit.eclipse.entities.EclipseProject

      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

Examples of com.subhajit.eclipse.entities.EclipseProject

          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

Examples of com.subhajit.eclipse.entities.EclipseProject

            .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

Examples of com.subhajit.eclipse.entities.EclipseProject

        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

Examples of com.subhajit.eclipse.entities.EclipseProject

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

Examples of org.gradle.tooling.model.eclipse.EclipseProject

                }

                // FIXME: We don't test the GradleProject instance because
                //  Gradle returns the root project for each project. Is this a bug?

                EclipseProject eclipseProject = (EclipseProject)fetched.get(EclipseProject.class);
                assertEquals("EclipseProject must match the requested one",
                        projectPath, eclipseProject.getGradleProject().getPath());

                IdeaProject ideaProject = (IdeaProject)fetched.get(IdeaProject.class);
                GradleProject gradleProjectOfIdea = null;
                for (IdeaModule ideaModule: ideaProject.getModules()) {
                    if (projectPath.equals(ideaModule.getGradleProject().getPath())) {
View Full Code Here

Examples of org.gradle.tooling.model.eclipse.EclipseProject

        for (IdeaModule ideaModule : ideaProject.getModules()) {
            visit(ideaModule, controller, new HashMap<String, CustomModel>());
        }

        // Use an EclipseProject to reference a project
        EclipseProject eclipseProject = controller.getModel(EclipseProject.class);
        visit(eclipseProject, controller, new HashMap<String, CustomModel>());

        // Use a GradleProject to reference a project
        GradleProject rootProject = controller.getModel(GradleProject.class);
        Map<String, CustomModel> projects = new HashMap<String, CustomModel>();
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.