public abstract class ToolBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
FALSE |
protected Localizer |
localizer |
protected LocalizableMessageFactory |
messageFactory |
protected OutputStream |
out |
protected String |
program |
protected static String |
TRUE |
| Constructor and Description |
|---|
ToolBase(OutputStream out,
String program) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getGenericErrorMessage() |
Localizable |
getMessage(String key) |
Localizable |
getMessage(String key,
Localizable localizable) |
Localizable |
getMessage(String key,
Object[] args) |
Localizable |
getMessage(String key,
String arg) |
Localizable |
getMessage(String key,
String arg1,
String arg2) |
Localizable |
getMessage(String key,
String arg1,
String arg2,
String arg3) |
protected abstract String |
getResourceBundleName() |
protected void |
initialize() |
protected abstract boolean |
parseArguments(String[] args) |
void |
printStackTrace(Throwable t) |
protected void |
report(Localizable msg) |
protected void |
report(String msg) |
protected abstract void |
run() |
boolean |
run(String[] args) |
boolean |
wasSuccessful() |
protected OutputStream out
protected String program
protected Localizer localizer
protected LocalizableMessageFactory messageFactory
protected static final String TRUE
protected static final String FALSE
public ToolBase(OutputStream out, String program)
protected void initialize()
public boolean run(String[] args)
public boolean wasSuccessful()
protected abstract boolean parseArguments(String[] args)
protected abstract String getGenericErrorMessage()
protected abstract String getResourceBundleName()
public void printStackTrace(Throwable t)
protected void report(String msg)
protected void report(Localizable msg)
public Localizable getMessage(String key)
public Localizable getMessage(String key, String arg)
public Localizable getMessage(String key, String arg1, String arg2)
public Localizable getMessage(String key, String arg1, String arg2, String arg3)
public Localizable getMessage(String key, Localizable localizable)
public Localizable getMessage(String key, Object[] args)
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.