Class PathMapping


  • public class PathMapping
    extends java.lang.Object
    Mapping between Eclipse IPath and plain Java Path.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.eclipse.core.runtime.IPath toEclipsePath​(java.nio.file.Path path)
      Maps the given plain Java Path to an Eclipse IPath.
      static java.nio.file.Path toJavaPath​(org.eclipse.core.runtime.IPath eclipsePath)
      Maps the given Eclipse IPath to a plain Java Path.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toJavaPath

        @CheckForNull
        public static java.nio.file.Path toJavaPath​(@CheckForNull
                                                    org.eclipse.core.runtime.IPath eclipsePath)
        Maps the given Eclipse IPath to a plain Java Path.
      • toEclipsePath

        @CheckForNull
        public static org.eclipse.core.runtime.IPath toEclipsePath​(@CheckForNull
                                                                   java.nio.file.Path path)
        Maps the given plain Java Path to an Eclipse IPath.