Package org.eclipse.debug.core.sourcelookup.containers

Examples of org.eclipse.debug.core.sourcelookup.containers.FolderSourceContainer


      }
      IProject project = modules[i].getProject();
      if (project != null && project.isAccessible()) {
        IFolder moduleFolder = project.getFolder(modules[i].getName());
        if (moduleFolder.exists()) {
          sourcefolderList.add(new FolderSourceContainer(moduleFolder, true));
        } else {
          try {
            if (project.hasNature(JavaCore.NATURE_ID)) {
              IJavaProject javaProject = (IJavaProject) project.getNature(JavaCore.NATURE_ID);
              if(!javaProjectList.contains(javaProject)){
View Full Code Here


          }
        } else {
          if (sc.getPackageFragmentRoot().isArchive()) {
            result.add(new ArchiveSourceContainer((IFile) sc.getPackageFragmentRoot().getCorrespondingResource(), false));
          } else {
            result.add(new FolderSourceContainer((IContainer) sc.getPackageFragmentRoot().getCorrespondingResource(), false));
          }
        }
      } else if (sourceContainer instanceof ExternalArchiveSourceContainer) {
        // TODO
        ExternalArchiveSourceContainer sc = (ExternalArchiveSourceContainer) sourceContainer;
View Full Code Here

      throw new CoreException(new Status(IStatus.ERROR, CCWPlugin.PLUGIN_ID, "Clojure SourcePathComputerDelegate unable to correctly set the clojure sources in the class because the considered launch configuration does not have an associated project"));
    } else {
      // TODO be smarter here : currently only works if src/ is the name of the dir :(
      //                        and only if one source directory is defined in the project :(
      return Arrays.asList(new ISourceContainer[] {
          new FolderSourceContainer(     
              ResourcesPlugin.getWorkspace().getRoot().getProject(projectName).getFolder("src")
              , true)
      });
    }
  }
View Full Code Here

            }
            if (project.hasNature(JavaCore.NATURE_ID)) {
                IJavaProject javaProject = JavaCore.create(project);
                for (IPackageFragmentRoot fragmentRoot : javaProject.getAllPackageFragmentRoots()) {
                    if (fragmentRoot.getResource() instanceof IFolder) {
                        sourceContainers.add(new FolderSourceContainer((IFolder)fragmentRoot.getResource(), true));
                    }
                }
                for (IClasspathEntry entry : javaProject.getResolvedClasspath(true)) {
                    switch (entry.getEntryKind()) {
                        case IClasspathEntry.CPE_CONTAINER:
View Full Code Here

TOP

Related Classes of org.eclipse.debug.core.sourcelookup.containers.FolderSourceContainer

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.