Class ConfigurableFileNameRenderer

    • Constructor Detail

      • ConfigurableFileNameRenderer

        public ConfigurableFileNameRenderer()
    • Method Detail

      • relativizeWith

        public void relativizeWith​(Path path)
        Add a prefix that is used to relativize file paths as their display name. For instance, when adding a file /tmp/src/main/java/org/foo.java, and relativizing with /tmp/src/, the registered TextFile will have a path id of /tmp/src/main/java/org/foo.java, and a display name of main/java/org/foo.java.

        This only matters for files added from a Path object.

        Parameters:
        path - Path with which to relativize