IBM Rational Performance Tester SDK

com.ibm.rational.common.test.editor.framework
Class PluginHelper

java.lang.Object
  extended by com.ibm.rational.common.test.editor.framework.PluginHelper

public class PluginHelper
extends Object


Field Summary
static String CRLF
           
 
Constructor Summary
PluginHelper(AbstractUIPlugin plugin)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CRLF

public static final String CRLF
See Also:
Constant Field Values
Constructor Detail

PluginHelper

public PluginHelper(AbstractUIPlugin plugin)
Method Detail

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 name
arg - 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)

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.