RC2 compatibility
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / core / util / Util.java
index ea8125b..5ce6748 100644 (file)
@@ -76,7 +76,7 @@ public class Util {
 
        /* 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$
@@ -824,6 +824,23 @@ public class Util {
        /*
         * 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 
@@ -832,13 +849,12 @@ public class Util {
                }
                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.