Examples of makeAbsolute()


Examples of org.eclipse.core.runtime.IPath.makeAbsolute()

    final IPath p = new Path(path);
    if (p.isAbsolute() && p.segmentCount() > 1) {
      return AbstractUIPlugin.imageDescriptorFromPlugin(p.segment(0), p
          .removeFirstSegments(1).makeAbsolute().toString());
    } else {
      return getBundledImageDescriptor(p.makeAbsolute().toString());
    }
  }

  /**
   * Returns an image for the image file at the given plug-in relative path.
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.makeAbsolute()

      return AbstractUIPlugin.imageDescriptorFromPlugin(
        p.segment(0), p.removeFirstSegments(1).makeAbsolute().toString());
    }
    else
    {
      return getBundledImageDescriptor(p.makeAbsolute().toString());
    }
  }

  public String getPlayerCount()
  {
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.makeAbsolute()

      return AbstractUIPlugin.imageDescriptorFromPlugin(
        p.segment(0), p.removeFirstSegments(1).makeAbsolute().toString());
    }
    else
    {
      return getBundledImageDescriptor(p.makeAbsolute().toString());
    }
  }

  // User credentials section.
 
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.makeAbsolute()

      return AbstractUIPlugin.imageDescriptorFromPlugin(iPath.segment(0),
        iPath.removeFirstSegments(1).makeAbsolute().toString());
    }
    else
    {
      return getBundledImageDescriptor(iPath.makeAbsolute().toString());
    }
  }
 
 
  // User credentials section.
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.makeAbsolute()

        if (projectPath != null && projectPath.isPrefixOf(xmlPath)) {
          if (xmlPath.segment(0).equals(projectPath.segment(0))) {
            xmlPath = xmlPath.removeFirstSegments(1);
            xmlPath = xmlPath.makeRelative();
          } else {
            xmlPath = xmlPath.makeAbsolute();
          }
        }
      }
    }
    parameters.put(TAG_PATH, String.valueOf(xmlPath));
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.makeAbsolute()

                            }
                            break;
                        case IClasspathEntry.CPE_SOURCE:
                            IPath specificPath = e.getOutputLocation();
                            if (specificPath != null) {
                                additionalPath = specificPath.makeAbsolute().toOSString();
                                classpath.add(additionalPath);
                            }
                            break;
                        case IClasspathEntry.CPE_LIBRARY:
                        case IClasspathEntry.CPE_VARIABLE:
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.makeAbsolute()

      return path;
    }
    IPath newPath = Path.fromOSString(newSegment);
    newPath = newPath.append(path.removeFirstSegments(1));
    if (path.isAbsolute()) {
      newPath = newPath.makeAbsolute();
    }
    return newPath;
  }
}
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.makeAbsolute()

    IPath path = classPathEntry.getPath();

    System.out.println("ClassEntry:");
    System.out.println("\tOriginal : " + path.toOSString());
    System.out.println("\tRelative : " + path.makeRelative().toOSString());
    System.out.println("\tAbsolute : " + path.makeAbsolute().toOSString());

    switch (kind) {
      case IClasspathEntry.CPE_LIBRARY:
        path = classPathEntry.getPath();
        boolean inProject = currentContainer.getFullPath().makeAbsolute().isPrefixOf(
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.makeAbsolute()

    switch (kind) {
      case IClasspathEntry.CPE_LIBRARY:
        path = classPathEntry.getPath();
        boolean inProject = currentContainer.getFullPath().makeAbsolute().isPrefixOf(
                path.makeAbsolute());

        System.out.println("\tProject (full absolute): "
                + currentContainer.getFullPath().makeAbsolute());
        System.out.println(inProject ? "\tinProject" : "Not in Project");
View Full Code Here

Examples of org.eclipse.core.runtime.IPath.makeAbsolute()

          if (!contain(classPath, temp)) {
            classPath.add(temp);
            System.out.println("\tadded to ClassPath: " + temp);
          }
        } else {
          temp = path.makeAbsolute().toOSString();
          temp = temp.trim();
          // MissingLibraries.add(temp);

          // if in another project in the workspace
          // -> warn : warnAboutMissingLibraries = true;
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.