com.ibm.rational.common.test.editor.framework
Class PluginHelper
java.lang.Object
com.ibm.rational.common.test.editor.framework.PluginHelper
public class PluginHelper
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CRLF
public static final String CRLF
- See Also:
- Constant Field Values
PluginHelper
public PluginHelper(AbstractUIPlugin plugin)
keyExists
public boolean keyExists(String key)
getString
public String getString(String key)
- Returns the "plugin.properties" file's value associate to a given key.
- Parameters:
key
-
- Returns:
- String
- Throws:
MissingResourceException
- if the key is not in the file
NullPointerException
- if key is null
getString
public String getString(String key,
String arg)
- Returns a string from plugin.properties file with one parameter substituted. The string must have "%1" characters (without quotes).
- Parameters:
key
- String property namearg
- String argument for paramter substitution.
- Returns:
- String property.
getString
public String getString(String key,
String[] args)
- Returns a string from plugin.properties file, with all parameters substituted.
The number of parameters in the string must be equal to the number of strings
in
args
.
- Parameters:
key
- String property name.args
- String[] array of arguments.
- Returns:
- String property witt substituted values.
getResourceBundleManager
public org.eclipse.hyades.test.core.util.ResourceBundleManager getResourceBundleManager()
- Returns:
- ResourceBundleManager
getID
public String getID()
logInfo
public void logInfo(String text)
logError
public void logError(String text)
logError
public void logError(Throwable throwable)
© Copyright IBM Corp. 2012. All rights reserved.