T - public abstract class ConsoleSetting<T> extends Object implements Setting<T>, Help
| Constructor and Description | 
|---|
| ConsoleSetting(T initValue)Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clear()Clear setting | 
| T | get()Get the current value for this setting | 
| String | getAsString()Get the value for this setting as a string | 
| String | getHelpLong()Get long description | 
| String | getHelpShort()Get short description, small enough to fit on one console row | 
| T | getInitValue()Get the initial value | 
| Class | getType()Get the parameter type | 
| void | set(T value)Set the value for this setting | 
| abstract void | setFromString(String value)Set the value for this setting from a string | 
public ConsoleSetting(T initValue)
initValue - initial valuepublic T getInitValue()
SettinggetInitValue in interface Setting<T>public T get()
Settingpublic void set(T value)
Settingpublic abstract void setFromString(String value) throws IllegalArgumentException
value - string valueIllegalArgumentExceptionpublic String getAsString()
public void clear()
Settingpublic String getHelpShort()
getHelpShort in interface Helppublic String getHelpLong()
getHelpLong in interface HelpCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.