core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/discovery/ui/Activator.java
--- a/core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/discovery/ui/Activator.java Mon May 17 09:23:33 2010 -0500
+++ b/core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/discovery/ui/Activator.java Mon May 17 10:03:22 2010 -0500
@@ -1,5 +1,7 @@
package com.nokia.carbide.discovery.ui;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
@@ -57,4 +59,13 @@
public static ImageDescriptor getImageDescriptor(String path) {
return imageDescriptorFromPlugin(PLUGIN_ID, path);
}
+
+ /**
+ * Log to error log
+ * @param message
+ * @param t
+ */
+ public static void logError(String message, Throwable t) {
+ getDefault().getLog().log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, message, t));
+ }
}