Package org.eclipse.jdt.core

Examples of org.eclipse.jdt.core.IJavaProject


  protected IModuleResource[] computeRuntimeClasspathMembers()
      throws CoreException {
    List<IModuleResource> members = new ArrayList<IModuleResource>();

    IJavaProject javaProject = CloudFoundryProjectUtil
        .getJavaProject(getProject());

    if (javaProject != null) {
      StandaloneRuntimeResolver resolver = new StandaloneRuntimeResolver(
          javaProject, true);
View Full Code Here


    return false;
  }

  @Override
  public boolean shouldSetDefaultUrl(CloudFoundryApplicationModule appModule) {
    IJavaProject project = CloudFoundryProjectUtil
        .getJavaProject(appModule);
    return JavaCloudFoundryArchiver.isBootProject(project);
  }
View Full Code Here

    }
  }

  public static IProject createPredefinedProject(final String projectName, String bundleName) throws CoreException,
      IOException {
    IJavaProject jp = setUpJavaProject(projectName, bundleName);
    StsTestUtil.getWorkspace().build(IncrementalProjectBuilder.FULL_BUILD, null);
    return jp.getProject();
  }
View Full Code Here

  }

  public static IJavaProject setUpJavaProject(final String projectName, String compliance, String sourceWorkspacePath)
      throws CoreException, IOException {
    IProject project = setUpProject(projectName, compliance, sourceWorkspacePath);
    IJavaProject javaProject = JavaCore.create(project);
    return javaProject;
  }
View Full Code Here

  public boolean canAddFacet() {
    if (project == null || !project.isAccessible() || hasFacet()) {
      return false;
    }

    IJavaProject javaProject = CloudFoundryProjectUtil
        .getJavaProject(project);
    return javaProject != null && javaProject.exists();
  }
View Full Code Here

    for (String name : collectedProjects) {
      IProject prj = ResourcesPlugin.getWorkspace().getRoot()
          .getProject(name);
      if (prj != null) {
        IJavaProject jvPrj = JavaCore.create(prj);
        if (jvPrj != null && jvPrj.exists()) {
          projects.add(jvPrj);
        }
      }
    }
View Full Code Here

    for (String name : sameLevelRequiredProjects) {
      try {
        IProject project = ResourcesPlugin.getWorkspace().getRoot()
            .getProject(name);
        if (project != null) {
          IJavaProject jvPrj = JavaCore.create(project);
          if (jvPrj != null && jvPrj.exists()) {
            if (!collectedProjects.contains(name)) {
              collectedProjects.add(name);
            }
            String[] names = jvPrj.getRequiredProjectNames();
            if (names != null && names.length > 0) {
              for (String reqName : names) {
                if (!nextLevelRequiredProjects
                    .contains(reqName)) {
                  nextLevelRequiredProjects.add(reqName);
View Full Code Here

    GridDataFactory.fillDefaults().grab(true, false).applyTo(composite);
    return composite;
  }

  protected StartCommandPart getJavaStartArea(Composite parent) {
    IJavaProject javaProject = project != null ? CloudFoundryProjectUtil
        .getJavaProject(project) : null;
    return new JavaStartCommandPart(javaProject, this, startCommand, parent);
  }
View Full Code Here

  protected IJavaProject getJavaProject() {
    return project;
  }

  public IType[] getMainTypes(IProgressMonitor monitor) {
    IJavaProject javaProject = getJavaProject();

    if (javaProject != null) {
      // Returns main method types
      boolean includeSubtypes = true;
      MainMethodSearchEngine engine = new MainMethodSearchEngine();
View Full Code Here

        description.setBuildSpec(new ICommand[] { javaBuild, sigilBuild });

        project.setDescription(description, new SubProgressMonitor(monitor, 2));

        IJavaProject java = JavaCore.create(project);
        if (java.exists())
        {
            IClasspathEntry[] cp = java.getRawClasspath();
            // check if sigil container is already on classpath - if not add it
            if (!isSigilOnClasspath(cp))
            {
                ArrayList<IClasspathEntry> entries = new ArrayList<IClasspathEntry>(
                    Arrays.asList(cp));
                entries.add(JavaCore.newContainerEntry(new Path(
                    SigilCore.CLASSPATH_CONTAINER_PATH)));
                java.setRawClasspath(
                    entries.toArray(new IClasspathEntry[entries.size()]), monitor);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.core.IJavaProject

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.