|
TPTP 4.3.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.tools.core.CorePlugin
The main plugin class to be used in the desktop.
| Field Summary | |
|---|---|
static java.lang.String |
PLUGIN_ID
|
| Fields inherited from class org.eclipse.core.runtime.Plugin |
|---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
| Constructor Summary | |
|---|---|
CorePlugin()
The constructor. |
|
| Method Summary | |
|---|---|
org.osgi.framework.BundleContext |
getContext()
|
static java.lang.String |
getID()
Returns this plugin's id. |
static CorePlugin |
getInstance()
Returns the shared instance. |
java.util.ResourceBundle |
getResourceBundle()
Returns the plugin's resource bundle, |
static java.lang.String |
getResourceString(java.lang.String key)
Returns the string from the plugin's resource bundle, or 'key' if not found. |
static java.lang.String |
getString(java.lang.String key)
Returns the "plugin.properties" file's value associate to a given key. |
static java.lang.String |
getString(java.lang.String key,
java.lang.String arg)
Returns the string value associate to a given key. |
static java.lang.String |
getString(java.lang.String key,
java.lang.String[] args)
Returns the "plugin.properties" file's value associate to a given key. |
static void |
logError(java.lang.String text)
Logs an error described by a text. |
static void |
logError(java.lang.Throwable exc)
Logs an error described by a throwable. |
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 |
| Field Detail |
public static final java.lang.String PLUGIN_ID
| Constructor Detail |
public CorePlugin()
| Method Detail |
public static CorePlugin getInstance()
public static java.lang.String getResourceString(java.lang.String key)
public java.util.ResourceBundle getResourceBundle()
public void start(org.osgi.framework.BundleContext context)
throws java.lang.Exception
java.lang.Exception
public void stop(org.osgi.framework.BundleContext context)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.String getID()
public static java.lang.String getString(java.lang.String key)
throws java.lang.NullPointerException,
java.util.MissingResourceException
key -
java.util.MissingResourceException - if the key is not in the file
java.lang.NullPointerException - if key is null
public static java.lang.String getString(java.lang.String key,
java.lang.String arg)
throws java.lang.NullPointerException,
java.util.MissingResourceException
#iterator() method.
The arg string defined replaces the %1
variable defined in the file's values.
Example: If the value associated to the key "a" is
"%0 %1 %2 %3 %4" and arg is "v1",
the return of this method is "%0 v1 %2 %3 %4".
key - arg -
java.util.MissingResourceException - if the key is not in the file
java.lang.NullPointerException - if key is null
public static java.lang.String getString(java.lang.String key,
java.lang.String[] args)
throws java.lang.NullPointerException,
java.util.MissingResourceException
The strings defined in args replaces the %n (where n>=1)
variables defined in the file's values.
Example: If the value associated to the key "a" is
"%0 %1 %2 %3 %4" and args is {"v1", null, "v3"},
the return of this method is "%0 v1 v3 %4".
key - args -
java.util.MissingResourceException - if the key is not in the file
java.lang.NullPointerException - if key is nullpublic static void logError(java.lang.Throwable exc)
This method should be used whenever a class in this plugin has to log an error since it adheres to the global logging strategy.
public static void logError(java.lang.String text)
This method should be whenever a class in this plugin has to log an error since it adheres to the global logging strategy.
text - public org.osgi.framework.BundleContext getContext()
|
TPTP 4.3.0 Testing Tools Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||