Constructor and Description |
---|
ConsoleCommand(ConsoleIO consoleIO)
Constructor
|
ConsoleCommand(ConsoleIO consoleIO,
ConsoleState state)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static Map<String,ConsoleSetting> |
convertParams(ConsoleParameters parameters)
Deprecated.
|
void |
execute(String... parameters)
Execute the given parameters.
|
ConsoleIO |
getConsoleIO()
Get console IO
|
ConsoleState |
getConsoleState()
Get console state
|
String |
getHelpLong()
Get long description
|
String |
getHelpShort()
Get short description, small enough to fit on one console row
|
public ConsoleCommand(ConsoleIO consoleIO)
consoleIO
- public ConsoleCommand(ConsoleIO consoleIO, ConsoleState state)
consoleIO
- state
- @Deprecated public static Map<String,ConsoleSetting> convertParams(ConsoleParameters parameters)
parameters
- console parameterspublic ConsoleIO getConsoleIO()
public ConsoleState getConsoleState()
public String getHelpShort()
getHelpShort
in interface Help
public String getHelpLong()
getHelpLong
in interface Help
public void execute(String... parameters) throws IOException
Command
execute
in interface Command
parameters
- parameters typed by userIOException
- if a problem occurs reading or writingCopyright © 2015-2019 Eclipse Foundation. All Rights Reserved.