X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPeclipsePlugin.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPeclipsePlugin.java index 19583f5..ccceb88 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPeclipsePlugin.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/PHPeclipsePlugin.java @@ -561,16 +561,24 @@ public class PHPeclipsePlugin extends AbstractUIPlugin implements IPreferenceCon } public static void log(Throwable t) { - log("PHPeclipsePlugin.internalErrorOccurred", t); //$NON-NLS-1$ + log(error(t)); } public static void log(String message, Throwable t) { - log(new Status(IStatus.ERROR, PLUGIN_ID, IStatus.ERROR, message, t)); + log(error(message, t)); } public static void logErrorMessage(String message) { log(new Status(IStatus.ERROR, getPluginId(), IJavaStatusConstants.INTERNAL_ERROR, message, null)); } + + public static IStatus error(Throwable t) { + return error("PHPeclipsePlugin.internalErrorOccurred", t); //$NON-NLS-1$ + } + + public static IStatus error(String message, Throwable t) { + return new Status(IStatus.ERROR, PLUGIN_ID, IStatus.ERROR, message, t); + } // private static void setJVM() { // String osName = System.getProperty("os.name");