public class Console extends Object
Constructor and Description |
---|
Console()
Constructor
|
Modifier and Type | Method and Description |
---|---|
ConsoleIO |
getConsoleIO()
Get console IO
|
ConsoleState |
getState()
Get console state
|
static void |
main(String[] args)
Main
|
void |
register(ConsoleCommand cmd)
Add command to register of known commands
|
void |
register(ConsoleSetting setting)
Add setting to register of known settings
|
protected void |
setExitOnError(boolean mode)
Set exit on error mode
|
void |
start()
Start the interactive console, return error code on exit
|
public Console() throws IOException
IOException
public ConsoleState getState()
public ConsoleIO getConsoleIO()
protected void setExitOnError(boolean mode)
mode
- true when error should exitpublic static void main(String[] args) throws IOException
args
- command line argumentsIOException
public final void register(ConsoleCommand cmd)
cmd
- command to be addedpublic final void register(ConsoleSetting setting)
setting
- setting to be addedpublic void start() throws IOException
IOException
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.