Package de.hsh.graja.gui.cli
Class GuiCommandProvider
java.lang.Object
de.hsh.graja.util.cli.CommandProvider
de.hsh.graja.gui.cli.GuiCommandProvider
- All Implemented Interfaces:
Comparable<CommandProvider>
This class provides a command on the command line for the JavaFX GUI client.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
This is themain
method of a command.protected String
getAdditionalAddModulesOption
(String command) For usage printout this method should return a comma-separated list of modules that need to be added on the command line to get thecommand
running.protected String
For usage printout this method should return a path-delimiter-separated list of module paths that need to be added on the --module-path command line option to get thecommand
running.protected String
For usage printout this method should return a path-delimiter-separated list of module paths that need to be added on the --module-path command line option to get thecommand
running.protected String[]
getCommands
(Logging log) Methods inherited from class de.hsh.graja.util.cli.CommandProvider
compareTo, equals, getName, hashCode, provideCommands, validateCommand
-
Constructor Details
-
GuiCommandProvider
public GuiCommandProvider()
-
-
Method Details
-
getCommands
- Specified by:
getCommands
in classCommandProvider
-
getAdditionalAddModulesOption
Description copied from class:CommandProvider
For usage printout this method should return a comma-separated list of modules that need to be added on the command line to get thecommand
running.- Overrides:
getAdditionalAddModulesOption
in classCommandProvider
- Returns:
- Default: ""
-
getAdditionalModulePathOptionTemplate
Description copied from class:CommandProvider
For usage printout this method should return a path-delimiter-separated list of module paths that need to be added on the --module-path command line option to get thecommand
running.- Overrides:
getAdditionalModulePathOptionTemplate
in classCommandProvider
- Returns:
- Default: ""
-
getAdditionalModulePathOptionExample
Description copied from class:CommandProvider
For usage printout this method should return a path-delimiter-separated list of module paths that need to be added on the --module-path command line option to get thecommand
running.- Overrides:
getAdditionalModulePathOptionExample
in classCommandProvider
- Returns:
- Default: ""
-
executeCommand
public void executeCommand(Logging log, String command, TreeMap<String, Object> options) throws CommandExceptionDescription copied from class:CommandProvider
This is themain
method of a command. It is called byCommand.execute(Logging, String[])
.- Specified by:
executeCommand
in classCommandProvider
- Parameters:
log
- All output should go to this Logging instance- Throws:
CommandException
-