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

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


    if (gRuntime != null) {
      IPath sourcePath = gRuntime.getRuntimeSourceLocation();
      if (sourcePath != null) {
        File file = sourcePath.toFile();
        if (file.isFile()) {
          ExternalArchiveSourceContainer sourceContainer = new ExternalArchiveSourceContainer(file.getAbsolutePath(), true);
          return new ISourceContainer[] { sourceContainer };
        } else if (file.isDirectory()) {
          // TODO implement me using DirectorySourceContainer
        }
      }
View Full Code Here


        IPath maybeSourcePath =  sc.getPackageFragmentRoot().getSourceAttachmentPath();
       
        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 {
            result.add(new FolderSourceContainer((IContainer) sc.getPackageFragmentRoot().getCorrespondingResource(), false));
          }
        }
      } 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

      for (IBuildpathEntry element : entries) {
        if (element.getEntryKind() == IBuildpathEntry.BPE_LIBRARY) {
          IPath path = element.getPath();
          File file = new File(path.toOSString());
          if (element.getContentKind() == IProjectFragment.K_BINARY) {
            containers.add(new ExternalArchiveSourceContainer(file
                .getAbsolutePath(), false));
          } else {
            containers
                .add(new DirectorySourceContainer(file, false));
          }
View Full Code Here

                    switch (entry.getEntryKind()) {
                        case IClasspathEntry.CPE_CONTAINER:
                            sourceContainers.add(new ClasspathContainerSourceContainer(entry.getPath()));
                            break;
                        case IClasspathEntry.CPE_LIBRARY:
                            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;
View Full Code Here

    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);
      } else if (isPhpFile(fileName)) {
        container[0] = new PHPFileSourceContainer(file);
      }
    }
View Full Code Here

TOP

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

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.