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/, and relativizing with /tmp/src/, the registered TextFile will have a path id of /tmp/src/main/java/org/, and a display name of main/java/org/

        This only matters for files added from a Path object.

        path - Path with which to relativize