Package org.eclipse.jdt.launching.sourcelookup.containers

Examples of org.eclipse.jdt.launching.sourcelookup.containers.JavaProjectSourceContainer


 
      // First add all projects source containers
      for (int i = 0; i < javaProjects.length; i++) {
        IJavaProject project = javaProjects[i];
        traceBuffer.append("  -> Add JavaProjectSourceContainer for " + project.getProject().getName() + "\n");
        sourceContainers.add(new JavaProjectSourceContainer(project));
      }

      // Adding packageFragmentRoot source containers, so classes in jar files associated to a project will be seen
      Set<IPath> external = new HashSet<IPath>();
View Full Code Here


                    if (runbundle.getType() == TYPE.PROJECT) {
                        String targetProjName = runbundle.getProject().getName();
                        IProject targetProj = ResourcesPlugin.getWorkspace().getRoot().getProject(targetProjName);
                        if (targetProj != null) {
                            IJavaProject targetJavaProj = JavaCore.create(targetProj);
                            result.add(new JavaProjectSourceContainer(targetJavaProj));
                        }
                    }
                }
            } catch (Exception e) {
                logger.logError("Error querying Bnd Dependency source containers.", e);
View Full Code Here

                    if (runbundle.getType() == TYPE.PROJECT) {
                        String targetProjName = runbundle.getProject().getName();
                        IProject targetProj = ResourcesPlugin.getWorkspace().getRoot().getProject(targetProjName);
                        if (targetProj != null) {
                            IJavaProject targetJavaProj = JavaCore.create(targetProj);
                            result.add(new JavaProjectSourceContainer(targetJavaProj));
                        }
                    } else if (runbundle.getType() == TYPE.REPO) {
                        IPath bundlePath = Central.toPath(runbundle.getFile());
                        IFile bundleFile = ResourcesPlugin.getWorkspace().getRoot().getFile(bundlePath);
                        ArchiveSourceContainer tempArchiveCont = new ArchiveSourceContainer(bundleFile, false);
View Full Code Here

    List<ISourceContainer> l = new LinkedList<ISourceContainer>();
    IJavaProject[] javaProjects = ProjectHelper.getAllJavaProjects();
    if (javaProjects!=null) {
      for (int i = 0; i < javaProjects.length; i++) {
        IJavaProject javaProject = javaProjects[i];
        JavaProjectSourceContainer sc = new JavaProjectSourceContainer(javaProject);
        l.add(sc);
//          ISourceContainer[] scs = sc.getSourceContainers();
//          if (scs!=null && scs.length>0) {
//            for (int j = 0; j < scs.length; j++) {
//              ISourceContainer iSourceContainer = scs[j];
View Full Code Here

        realContainers.add(defaultContainer);
      }

      for (IProject dependency : projs) {
        // handle projects in current workspace
        ISourceContainer newContainer = new JavaProjectSourceContainer(
            JavaCore.create((IProject) dependency));
        if (!contains(existContainers, newContainer)) {
          realContainers.add(newContainer);
        }
      }
View Full Code Here

        realContainers.add(defaultContainer);
      }

      for (IProject dependency : projs) {
        // handle projects in current workspace
        ISourceContainer newContainer = new JavaProjectSourceContainer(
            JavaCore.create((IProject) dependency));
        if (!contains(existContainers, newContainer)) {
          realContainers.add(newContainer);
        }
      }
View Full Code Here

        realContainers.add(defaultContainer);
      }

      for (IProject dependency : projs) {
        // handle projects in current workspace
        ISourceContainer newContainer = new JavaProjectSourceContainer(
            JavaCore.create((IProject) dependency));
        if (!contains(existContainers, newContainer)) {
          realContainers.add(newContainer);
        }
      }
View Full Code Here

        realContainers.add(defaultContainer);
      }

      for (IProject dependency : projs) {
        // handle projects in current workspace
        ISourceContainer newContainer = new JavaProjectSourceContainer(
            JavaCore.create((IProject) dependency));
        if (!contains(existContainers, newContainer)) {
          realContainers.add(newContainer);
        }
      }
View Full Code Here

      } else if (sourceContainer instanceof ExternalArchiveSourceContainer) {
        // TODO
        ExternalArchiveSourceContainer sc = (ExternalArchiveSourceContainer) sourceContainer;
      } else if (sourceContainer instanceof JavaProjectSourceContainer) {
        // TODO
        JavaProjectSourceContainer sc = (JavaProjectSourceContainer) sourceContainer;
        sc.getJavaProject();
      } else {
        /*    TODO manager other kinds ?
            DirectorySourceContainer

            ISourceContainer
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.launching.sourcelookup.containers.JavaProjectSourceContainer

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.