Package net.enilink.commons.util
Class CommonsUtilPlugin
- java.lang.Object
-
- net.enilink.commons.util.CommonsUtilPlugin
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
public class CommonsUtilPlugin extends Object implements org.osgi.framework.BundleActivator
The activator class controls the plug-in life cycle
-
-
Constructor Summary
Constructors Constructor Description CommonsUtilPlugin()The constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CommonsUtilPlugingetDefault()Returns the shared instancestatic voidlog(Throwable e)static voidlog(org.eclipse.core.runtime.IStatus status)static voidlogErrorMessage(String message)static voidlogErrorStatus(String message, org.eclipse.core.runtime.IStatus status)static booleanopenResource(String openerId, Object root, Object resource)voidstart(org.osgi.framework.BundleContext context)voidstop(org.osgi.framework.BundleContext context)
-
-
-
Field Detail
-
PLUGIN_ID
public static final String PLUGIN_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
start
public void start(org.osgi.framework.BundleContext context) throws Exception- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception
-
stop
public void stop(org.osgi.framework.BundleContext context) throws Exception- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception
-
getDefault
public static CommonsUtilPlugin getDefault()
Returns the shared instance- Returns:
- the shared instance
-
log
public static void log(org.eclipse.core.runtime.IStatus status)
-
logErrorMessage
public static void logErrorMessage(String message)
-
logErrorStatus
public static void logErrorStatus(String message, org.eclipse.core.runtime.IStatus status)
-
log
public static void log(Throwable e)
-
-