core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/sdk/ui/SDKUIPlugin.java
changeset 2034 8ca82bbe1973
parent 2003 576284888c71
--- a/core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/sdk/ui/SDKUIPlugin.java	Thu Sep 16 13:49:36 2010 -0500
+++ b/core/com.nokia.carbide.cpp.sdk.ui/src/com/nokia/carbide/cpp/sdk/ui/SDKUIPlugin.java	Thu Sep 16 16:09:17 2010 -0500
@@ -16,6 +16,8 @@
 */
 package com.nokia.carbide.cpp.sdk.ui;
 
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
 import org.eclipse.jface.preference.IPreferenceStore;
 import org.eclipse.jface.resource.ImageDescriptor;
 import org.eclipse.swt.widgets.Shell;
@@ -150,4 +152,13 @@
 		}
 		
 	}
+
+    public static IStatus makeErrorStatus(String message, Throwable t) {
+    	return makeStatus(IStatus.ERROR, message, t);
+    }
+
+    public static IStatus makeStatus(int severity, String message, Throwable t) {
+    	return new Status(severity, PLUGIN_ID, message, t);
+    }
+
 }