/* 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$
// case IJavaElement.PACKAGE_FRAGMENT:
// PackageFragmentRoot root = (PackageFragmentRoot)element.getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT);
// IResource resource = element.getResource();
-// return resource != null && Util.isExcluded(resource, root.fullExclusionPatternChars());
+// return resource != null && ProjectPrefUtil.isExcluded(resource, root.fullExclusionPatternChars());
case IJavaElement.COMPILATION_UNIT:
root = (PackageFragmentRoot)element.getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT);
resource = element.getResource();
-// if (resource != null && Util.isExcluded(resource, root.fullExclusionPatternChars()))
+// if (resource != null && ProjectPrefUtil.isExcluded(resource, root.fullExclusionPatternChars()))
// return true;
return isExcluded(element.getParent());
default:
/*
* 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.