/* Bundle containing messages */
protected static ResourceBundle bundle;
- private final static String bundleName = "net.sourceforge.phpdt.internal.core.messages"; //$NON-NLS-1$
+ private final static String bundleName = "net.sourceforge.phpdt.internal.core.util.messages"; //$NON-NLS-1$
// public final static char[] SUFFIX_class = ".class".toCharArray(); //$NON-NLS-1$
// public final static char[] SUFFIX_CLASS = ".CLASS".toCharArray(); //$NON-NLS-1$
/*
* Add a log entry
*/
+// public static void log(Throwable e, String message) {
+// Throwable nestedException;
+// if (e instanceof JavaModelException
+// && (nestedException = ((JavaModelException)e).getException()) != null) {
+// e = nestedException;
+// }
+// IStatus status= new Status(
+// IStatus.ERROR,
+// JavaCore.getPlugin().getDescriptor().getUniqueIdentifier(),
+// IStatus.ERROR,
+// message,
+// e);
+// JavaCore.getPlugin().getLog().log(status);
+// }
+ /*
+ * Add a log entry
+ */
public static void log(Throwable e, String message) {
Throwable nestedException;
if (e instanceof JavaModelException
}
IStatus status= new Status(
IStatus.ERROR,
- JavaCore.getPlugin().getDescriptor().getUniqueIdentifier(),
+ JavaCore.PLUGIN_ID,
IStatus.ERROR,
message,
e);
JavaCore.getPlugin().getLog().log(status);
}
-
/**
* Normalizes the cariage returns in the given text.
* They are all changed to use the given buffer's line separator.