Examples of internalPath()


Examples of org.eclipse.jdt.internal.core.PackageFragmentRoot.internalPath()

    case IJavaElement.JAVA_PROJECT:
      add((JavaProject)element, null, includeMask, new HashSet(2), new HashSet(2), null);
      break;
    case IJavaElement.PACKAGE_FRAGMENT_ROOT:
      root = (PackageFragmentRoot)element;
      IPath rootPath = root.internalPath();
      containerPath = root.getKind() == IPackageFragmentRoot.K_SOURCE ? root.getParent().getPath() : rootPath;
      containerPathToString = containerPath.getDevice() == null ? containerPath.toString() : containerPath.toOSString();
      IResource rootResource = root.resource();
      String projectPath = root.getJavaProject().getPath().toString();
      if (rootResource != null && rootResource.isAccessible()) {
View Full Code Here

Examples of org.eclipse.jdt.internal.core.PackageFragmentRoot.internalPath()

        add(projectPath, relativePath, containerPathToString, true/*package*/, null);
      } else {
        IResource resource = ((JavaElement) element).resource();
        if (resource != null) {
          if (resource.isAccessible()) {
            containerPath = root.getKind() == IPackageFragmentRoot.K_SOURCE ? root.getParent().getPath() : root.internalPath();
          } else {
            // for working copies, get resource container full path
            containerPath = resource.getParent().getFullPath();
          }
          containerPathToString = containerPath.getDevice() == null ? containerPath.toString() : containerPath.toOSString();
View Full Code Here

Examples of org.eclipse.jdt.internal.core.PackageFragmentRoot.internalPath()

      String relativePath;
      if (root.getKind() == IPackageFragmentRoot.K_SOURCE) {
        containerPath = root.getParent().getPath();
        relativePath = Util.relativePath(getPath(element, false/*full path*/), 1/*remove project segment*/);
      } else {
        containerPath = root.internalPath();
        relativePath = getPath(element, true/*relative path*/).toString();
      }
      containerPathToString = containerPath.getDevice() == null ? containerPath.toString() : containerPath.toOSString();
      add(projectPath, relativePath, containerPathToString, false/*not a package*/, null);
  }
View Full Code Here

Examples of org.eclipse.jdt.internal.core.PackageFragmentRoot.internalPath()

      && (rootPathLength = this.lastPkgFragmentRootPath.length()) > 0
      && resourcePath.charAt(rootPathLength) == '/')) {
    PackageFragmentRoot root = (PackageFragmentRoot) ((AbstractJavaSearchScope)this.scope).packageFragmentRoot(resourcePath, -1/*not a jar*/, null/*no jar path*/);
    if (root == null) return null;
    this.lastPkgFragmentRoot = root;
    this.lastPkgFragmentRootPath = root.internalPath().toString();
    this.packageHandles = new HashtableOfArrayToObject(5);
  }
  // create handle
  resourcePath = resourcePath.substring(this.lastPkgFragmentRootPath.length() + 1);
  String[] simpleNames = new Path(resourcePath).segments();
View Full Code Here

Examples of org.eclipse.jdt.internal.core.PackageFragmentRoot.internalPath()

    case IJavaElement.JAVA_PROJECT:
      add((JavaProject)element, null, includeMask, new HashSet(2), new HashSet(2), null);
      break;
    case IJavaElement.PACKAGE_FRAGMENT_ROOT:
      root = (PackageFragmentRoot)element;
      IPath rootPath = root.internalPath();
      containerPath = root.getKind() == IPackageFragmentRoot.K_SOURCE ? root.getParent().getPath() : rootPath;
      containerPathToString = containerPath.getDevice() == null ? containerPath.toString() : containerPath.toOSString();
      IResource rootResource = root.resource();
      String projectPath = root.getJavaProject().getPath().toString();
      if (rootResource != null && rootResource.isAccessible()) {
View Full Code Here

Examples of org.eclipse.jdt.internal.core.PackageFragmentRoot.internalPath()

        add(projectPath, relativePath, containerPathToString, true/*package*/, null);
      } else {
        IResource resource = ((JavaElement) element).resource();
        if (resource != null) {
          if (resource.isAccessible()) {
            containerPath = root.getKind() == IPackageFragmentRoot.K_SOURCE ? root.getParent().getPath() : root.internalPath();
          } else {
            // for working copies, get resource container full path
            containerPath = resource.getParent().getFullPath();
          }
          containerPathToString = containerPath.getDevice() == null ? containerPath.toString() : containerPath.toOSString();
View Full Code Here

Examples of org.eclipse.jdt.internal.core.PackageFragmentRoot.internalPath()

      String relativePath;
      if (root.getKind() == IPackageFragmentRoot.K_SOURCE) {
        containerPath = root.getParent().getPath();
        relativePath = Util.relativePath(getPath(element, false/*full path*/), 1/*remove project segment*/);
      } else {
        containerPath = root.internalPath();
        relativePath = getPath(element, true/*relative path*/).toString();
      }
      containerPathToString = containerPath.getDevice() == null ? containerPath.toString() : containerPath.toOSString();
      add(projectPath, relativePath, containerPathToString, false/*not a package*/, null);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.