|
Bus | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.runtime.Plugin
org.topcased.bus.core.CorePlugin
public class CorePlugin
The main plugin class to be used in the desktop. Manage Log in a "error log" console
| Field Summary | |
|---|---|
static java.lang.String |
PREFERENCEPATHTEMPLATE
|
| 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 | |
|---|---|
static CorePlugin |
getDefault()
Getter for the shared instance. |
static java.lang.String |
getId()
Getter for the plugin identifier |
java.util.ResourceBundle |
getResourceBundle()
Returns the plugin's resource bundle |
static java.lang.String |
getResourceString(java.lang.String key)
|
static void |
log(java.lang.Class<?> serviceClass,
java.lang.String message,
int level)
Log a message with given level into the Eclipse log file and with given name class which call it |
static void |
log(java.lang.Class<?> serviceClass,
java.lang.String message,
int level,
java.lang.Exception e)
Log a message with given level into the Eclipse log file and with given name class which call it |
static void |
log(org.eclipse.core.runtime.IStatus status)
Log an IStatus |
static void |
log(java.lang.String message,
int level)
Log a message with a given level into the Eclipse log file |
static void |
log(java.lang.Throwable e)
Log an exception into the Eclipse log file |
void |
start(org.osgi.framework.BundleContext context)
This method is called upon plug-in activation |
void |
stop(org.osgi.framework.BundleContext context)
This method is called when the plug-in is stopped |
| 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 java.lang.String PREFERENCEPATHTEMPLATE
| Constructor Detail |
|---|
public CorePlugin()
| Method Detail |
|---|
public void start(org.osgi.framework.BundleContext context)
throws java.lang.Exception
start in interface org.osgi.framework.BundleActivatorstart in class org.eclipse.core.runtime.Plugincontext - : the BundleContext
java.lang.Exception
public void stop(org.osgi.framework.BundleContext context)
throws java.lang.Exception
stop in interface org.osgi.framework.BundleActivatorstop in class org.eclipse.core.runtime.Plugincontext - : the BundleContext
java.lang.Exceptionpublic static CorePlugin getDefault()
public static java.lang.String getResourceString(java.lang.String key)
key -
public java.util.ResourceBundle getResourceBundle()
public static java.lang.String getId()
public static void log(org.eclipse.core.runtime.IStatus status)
status -
public static void log(java.lang.String message,
int level)
message - : the message to loglevel - : the message priority
public static void log(java.lang.Class<?> serviceClass,
java.lang.String message,
int level)
serviceClass - calling => you must write : this.getClass()message - : the message to loglevel - : the message priority (IStatus.INFO or .ERROR or .WARNING ...)
public static void log(java.lang.Class<?> serviceClass,
java.lang.String message,
int level,
java.lang.Exception e)
serviceClass - calling => you must write : this.getClass()message - : the message to loglevel - : the message priority (IStatus.INFO or IStatus.ERROR or IStatus.WARNING ...)e - : exception stackpublic static void log(java.lang.Throwable e)
e - : the exception to log
|
Bus | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.