}
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");