|
TPTP 4.4.0 Testing Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.core.runtime.Plugin
org.eclipse.hyades.test.core.TestCorePlugin
Plugin class for the test core plug-in; also provides other utilities exposed through its implementation of the system utility interface. System utilities are provided through the standalone system utility class when in standalone mode.
ISystemUtility| Field Summary |
|---|
| Fields inherited from class org.eclipse.core.runtime.Plugin |
|---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
| Constructor Summary | |
|---|---|
TestCorePlugin()
Default constructor for the execution harness plugin, state is passed in via the lifecycle-related methods start/stop providing the bundle context. |
|
| Method Summary | |
|---|---|
static TestCorePlugin |
getDefault()
Provides public static access to the singleton instance of this plug-in class. |
static java.lang.String |
getPluginId()
Provides public static access to the plugin id for this plug-in, this is defined in the plugin.xml file. |
java.util.ResourceBundle |
getResourceBundle()
Deprecated. As of TPTP V4.4, use TestCorePluginResourceBundle for resolving resources. The plugin.properties property file ONLY contains messages for the this plug-in's MANIFEST.MF and plugin.xml files. |
java.lang.String |
getString(java.lang.String key)
Deprecated. As of TPTP V4.4, use TestCorePluginResourceBundle for resolving resources. The plugin.properties property file ONLY contains messages for the this plug-in's MANIFEST.MF and plugin.xml files. |
static java.lang.String |
getString(java.lang.String key,
java.lang.String argument)
Deprecated. As of TPTP V4.4, use TestCorePluginResourceBundle for resolving resources. The plugin.properties property file ONLY contains messages for the this plug-in's MANIFEST.MF and plugin.xml files. |
static java.lang.String |
getString(java.lang.String key,
java.lang.String[] arguments)
Deprecated. As of TPTP V4.4, use TestCorePluginResourceBundle for resolving resources. The plugin.properties property file ONLY contains messages for the this plug-in's MANIFEST.MF and plugin.xml files. |
void |
logError(java.lang.String text)
Logs an error described by a text. |
void |
logError(java.lang.Throwable exc)
|
void |
start(org.osgi.framework.BundleContext context)
|
void |
stop(org.osgi.framework.BundleContext context)
|
| Methods inherited from class org.eclipse.core.runtime.Plugin |
|---|
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TestCorePlugin()
| Method Detail |
public static TestCorePlugin getDefault()
public static java.lang.String getPluginId()
public java.util.ResourceBundle getResourceBundle()
TestCorePluginResourceBundle for resolving resources. The plugin.properties property file ONLY contains messages for the this plug-in's MANIFEST.MF and plugin.xml files.
If the plugin's resource bundle can not be resolved, null is returned.
IMPORTANT: Do not use this method to retrieve values from the resource bundle. This method is provided so this plugin's resource bundle can be used as the parent of another plugin's resource bundle.
getResourceBundle in interface ISystemUtilitynull.public java.lang.String getString(java.lang.String key)
TestCorePluginResourceBundle for resolving resources. The plugin.properties property file ONLY contains messages for the this plug-in's MANIFEST.MF and plugin.xml files.
key
based on the default locale from the plugin's resource bundle.
If the key does not exist in the plugin's resource bundle, the
key is returned.
Noteworthy, the resultant message is not formatted (e.g. no message parameter substitution).
getString in interface ISystemUtilitykey - The key of the message in the plugin's resource bundle.
key from the plugin's resource bundle, otherwise the key.
public static java.lang.String getString(java.lang.String key,
java.lang.String argument)
TestCorePluginResourceBundle for resolving resources. The plugin.properties property file ONLY contains messages for the this plug-in's MANIFEST.MF and plugin.xml files.
key
based on the default locale from the plugin's resource bundle.
Message formatting is done by the NLS class using the
default locale.
If the key does not exist in the plugin's resource bundle, the
key is returned.
key - The key of the message in the plugin's resource bundle.argument - The first message parameter for formatting in the localized and formatted message.
key from the plugin's resource bundle, otherwise the key.
public static java.lang.String getString(java.lang.String key,
java.lang.String[] arguments)
TestCorePluginResourceBundle for resolving resources. The plugin.properties property file ONLY contains messages for the this plug-in's MANIFEST.MF and plugin.xml files.
key
based on the default locale from the plugin's resource bundle.
Message formatting is done by the NLS class using the
default locale.
If the key does not exist in the plugin's resource bundle, the
key is returned.
key - The key of the message in the plugin's resource bundle.arguments - The array of message parameters for formatting in the localized and formatted message.
key from the plugin's resource bundle, otherwise the key.public void logError(java.lang.Throwable exc)
logError in interface ISystemUtilitypublic void logError(java.lang.String text)
This method should be used whenever a class in this plugin has to log an error since it adheres to the global logging strategy.
text -
public void start(org.osgi.framework.BundleContext context)
throws java.lang.Exception
start in interface org.osgi.framework.BundleActivatorjava.lang.Exception
public void stop(org.osgi.framework.BundleContext context)
throws java.lang.Exception
stop in interface org.osgi.framework.BundleActivatorjava.lang.Exception
|
TPTP 4.4.0 Testing Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||