Package io.github.jbastgen.stemma.app.io
Class ExternalTools
java.lang.Object
io.github.jbastgen.stemma.app.io.ExternalTools
The programs listed in Settings → Integration → Tools (feature 13): every tool adds Open in <name> to the
context menu of a file. One line per tool:
Name = command, or Name [java, xml] = command for the file types it is
offered for; a line starting with # is a tool that is switched off. In the command $FILE is the absolute path,
$REL the path in the repository, $DIR the repository's folder and $LINE a line number (1 when the
caller has none). The command is started without a shell.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncommand(ExternalTools.Tool tool, Path repository, String relPath, int line) The command line with the placeholders replaced; each word stays one argument, whatever the path contains.static List<ExternalTools.Tool> forFile(List<ExternalTools.Tool> tools, String fileName) The tools that are switched on and offered for this file name.static List<ExternalTools.Tool> Reads the settings text; lines that are not tools are left out.
-
Field Details
-
PRESETS
Known tools for a one-click start, as lines for the settings.
-
-
Method Details
-
parse
Reads the settings text; lines that are not tools are left out. -
command
public static List<String> command(ExternalTools.Tool tool, Path repository, String relPath, int line) The command line with the placeholders replaced; each word stays one argument, whatever the path contains. -
forFile
The tools that are switched on and offered for this file name.
-