public class PluginHelper extends Object
Constructor and Description |
---|
PluginHelper(AbstractUIPlugin plugin) |
Modifier and Type | Method and Description |
---|---|
String |
getID() |
org.eclipse.hyades.test.core.util.ResourceBundleManager |
getResourceBundleManager() |
String |
getString(String key)
Returns the "plugin.properties" file's value associate to a given key.
|
String |
getString(String key,
String arg)
Returns a string from plugin.properties file with one parameter substituted.
|
String |
getString(String key,
String[] args)
Returns a string from plugin.properties file, with all parameters substituted.
|
boolean |
keyExists(String key) |
void |
logError(String text) |
void |
logError(Throwable throwable) |
void |
logInfo(String text) |
public static final String CRLF
public PluginHelper(AbstractUIPlugin plugin)
public boolean keyExists(String key)
public String getString(String key)
key
- MissingResourceException
- if the key is not in the fileNullPointerException
- if key is nullpublic String getString(String key, String arg)
key
- String property namearg
- String argument for paramter substitution.public String getString(String key, String[] args)
args
.key
- String property name.args
- String[] array of arguments.public org.eclipse.hyades.test.core.util.ResourceBundleManager getResourceBundleManager()
public String getID()
public void logInfo(String text)
public void logError(String text)
public void logError(Throwable throwable)
© Copyright IBM Corp. 2013. All rights reserved.