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

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


                moduleDirs.add(lib.addTrailingSeparator().append(h));
            }
        }
        final List<ISourceContainer> r = new ArrayList<ISourceContainer>();
        for (final IPath dir : moduleDirs) {
            r.add(new DirectorySourceContainer(dir.addTrailingSeparator().append("src"),
                    false));
        }
        return r.toArray(new ISourceContainer[r.size()]);
    }
View Full Code Here


    // we store the context file to run in the ATTR_FILE
//    IFile file = CamelDebugRegistry.getInstance().getEntry(configuration).getEditorInput().getFile();
       
    ISourceContainer sourceContainer = null;
    if (file != null) {
      sourceContainer = new DirectorySourceContainer(file.getLocation().toFile().getParentFile(), true);
    }
   
    if (sourceContainer == null) {
      sourceContainer = new WorkspaceSourceContainer();
    }
View Full Code Here

        if (maybeSourcePath != null) {
          maybeSourcePath = ClojureCore.toOSAbsoluteIPath(maybeSourcePath);
          if (maybeSourcePath.toFile().isFile()) {
            result.add(new ExternalArchiveSourceContainer(maybeSourcePath.toOSString(), false));
          } else {
            result.add(new DirectorySourceContainer(maybeSourcePath, false));
          }
        }
        // unconditionnally add the path of the archive, *after* the sourcePath, so that cljs in sourcePath
        // take precedence over cljs in "bin" path
        if (sc.getPackageFragmentRoot().isExternal()) {
          if (sc.getPackageFragmentRoot().isArchive()) {
            result.add(new ExternalArchiveSourceContainer(sc.getPackageFragmentRoot().getPath().toOSString(), false));
          } else {
            result.add(new DirectorySourceContainer(sc.getPackageFragmentRoot().getPath(), false));
          }
        } else {
          if (sc.getPackageFragmentRoot().isArchive()) {
            result.add(new ArchiveSourceContainer((IFile) sc.getPackageFragmentRoot().getCorrespondingResource(), false));
          } else {
View Full Code Here

          if (element.getContentKind() == IProjectFragment.K_BINARY) {
            containers.add(new ExternalArchiveSourceContainer(file
                .getAbsolutePath(), false));
          } else {
            containers
                .add(new DirectorySourceContainer(file, false));
          }
        } else if (element.getEntryKind() == IBuildpathEntry.BPE_PROJECT) {
          IResource resource = ResourcesPlugin.getWorkspace()
              .getRoot().findMember(
                  element.getPath().lastSegment());
View Full Code Here

                            sourceContainers.add(new ExternalArchiveSourceContainer(entry.getPath().toString(), true));
                            if (entry.getSourceAttachmentPath() != null) {
                                System.out.println(entry.getSourceAttachmentPath());
                                sourceContainers.add(new ExternalArchiveSourceContainer(
                                        entry.getSourceAttachmentPath().toString(), true));
                                sourceContainers.add(new DirectorySourceContainer(entry.getSourceAttachmentPath(),
                                        true));
                            }
                            break;
                        case IClasspathEntry.CPE_SOURCE:
                            sourceContainers.add(new DirectorySourceContainer(entry.getPath(), true));
                            break;
                    }
                }
            }
        }
View Full Code Here

  protected ISourceContainer[] createSourceContainers() throws CoreException {
    IPath path = DLTKCore.getResolvedVariablePath(fPath);
    File file = path.toFile();
    ISourceContainer[] container = new ISourceContainer[1];
    if (file.isDirectory()) {
      container[0] = new DirectorySourceContainer(file, false);
    } else {
      String fileName = file.getName();
      if (fileName.toLowerCase().endsWith(".zip")) { //$NON-NLS-1$
        container[0] = new ExternalArchiveSourceContainer(file
            .getPath(), false);
View Full Code Here

TOP

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

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.