Uses of Enum Class
io.github.jbastgen.stemma.app.io.FileManager.Os
Packages that use FileManager.Os
Package
Description
Interaction with the operating system and the file system: opening files and folders, external tools and terminals, the web
browser, the trash, copies of opened files, log files, PDF writing and image helpers.
-
Uses of FileManager.Os in io.github.jbastgen.stemma.app.io
Methods in io.github.jbastgen.stemma.app.io that return FileManager.OsModifier and TypeMethodDescriptionstatic FileManager.OsFileManager.Os.current()The system Stemma runs on.static FileManager.OsThe system for anos.name; anything that is not Windows or macOS is treated as Linux.static FileManager.OsReturns the enum constant of this class with the specified name.static FileManager.Os[]FileManager.Os.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in io.github.jbastgen.stemma.app.io with parameters of type FileManager.OsModifier and TypeMethodDescriptionFileManager.command(FileManager.Os os, FileManager.Target target, String override) The command that shows the target.FileOpener.command(FileManager.Os os, Path file) The command that opens the file.WebBrowser.command(FileManager.Os os, String url) The command that opens the address in the default browser.static booleanTerminalLauncher.installed(FileManager.Os os, TerminalLauncher.Terminal t, Map<String, String> env) Whether the terminal's program is installed: an application bundle on macOS, a program on the path elsewhere.static List<TerminalLauncher.Terminal> TerminalLauncher.Terminal.of(FileManager.Os os) The terminals of a system, in the order they are tried.static FileManager.ResultFileOpener.open(FileManager.Os os, Path file, FileManager.Runner runner, WebBrowser.Browse fallback) Opens the file; blocks for at most a few seconds, so call it off the UI thread.static TerminalLauncher.ResultTerminalLauncher.open(FileManager.Os os, Path dir, String choice, String template, Predicate<TerminalLauncher.Terminal> installed, TerminalLauncher.Starter starter) Opens a terminal indir; blocks for at most a few seconds, so call it off the UI thread.static FileManager.ResultWebBrowser.open(FileManager.Os os, String url, FileManager.Runner runner, WebBrowser.Browse fallback) Opens the address; blocks for at most a few seconds, so call it off the UI thread.static TerminalLauncher.PlanTerminalLauncher.plan(FileManager.Os os, Path dir, String choice, String template, Predicate<TerminalLauncher.Terminal> installed) Decides what to run.static FileManager.ResultFileManager.show(FileManager.Os os, Path repo, String relPath, String override, FileManager.Runner runner, FileManager.Fallback fallback) Shows the file (or the repository) in the file manager.