Interface FilesView.Source

Enclosing class:
FilesView

public static interface FilesView.Source
Where the files come from.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    authorName(io.github.jbastgen.stemma.git.api.BlameLine line)
    The name to show for the author of a blamed line (the display name of the user mapping).
    default void
    blame(String revision, String path, io.github.jbastgen.stemma.git.api.BlameOptions options, BiConsumer<List<io.github.jbastgen.stemma.git.api.BlameLine>,String> then)
    Blames a file as it is in a revision (a commit id, <id>^, or wip for the last commit); then gets the lines, or null and the reason (feature 47).
    void
    bytes(String sel, String path, Consumer<byte[]> then)
    The content of a file, null when it is not there.
    default boolean
    Whether source files are shown with the colours of their language (feature 52).
    void
    A link of a rendered Markdown file was clicked.
    void
    The paths of all files of the commit sel (wip = the last commit); then runs on the UI thread, null on failure.
    default void
    showCommit(String commitId)
    A commit was chosen in the blame: show it in the history.
    default void
    showHistory(String path, boolean folder)
    The history of a file or folder was asked for in the menu of the tree (feature 46).
    default Theme
    The colours of the theme, for the age of the lines.
  • Method Details

    • paths

      void paths(String sel, Consumer<List<String>> then)
      The paths of all files of the commit sel (wip = the last commit); then runs on the UI thread, null on failure.
    • bytes

      void bytes(String sel, String path, Consumer<byte[]> then)
      The content of a file, null when it is not there.
    • openLink

      void openLink(String href)
      A link of a rendered Markdown file was clicked.
    • blame

      default void blame(String revision, String path, io.github.jbastgen.stemma.git.api.BlameOptions options, BiConsumer<List<io.github.jbastgen.stemma.git.api.BlameLine>,String> then)
      Blames a file as it is in a revision (a commit id, <id>^, or wip for the last commit); then gets the lines, or null and the reason (feature 47).
    • showHistory

      default void showHistory(String path, boolean folder)
      The history of a file or folder was asked for in the menu of the tree (feature 46).
    • showCommit

      default void showCommit(String commitId)
      A commit was chosen in the blame: show it in the history.
    • authorName

      default String authorName(io.github.jbastgen.stemma.git.api.BlameLine line)
      The name to show for the author of a blamed line (the display name of the user mapping).
    • highlightSyntax

      default boolean highlightSyntax()
      Whether source files are shown with the colours of their language (feature 52).
    • theme

      default Theme theme()
      The colours of the theme, for the age of the lines.