Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipe Mulet2002-05-07 15:48:28 -0400
committerPhilipe Mulet2002-05-07 15:48:28 -0400
commit3fe6dc52b1ff6423eca9c19dea3762ff2d0ab1d6 (patch)
tree17e43d92030f03603dc59bca52bd50e3122ecb9d
parent67aad1e7ae9092ed54fcb536774230b1a191da9f (diff)
downloadeclipse.jdt.core-M5.tar.gz
eclipse.jdt.core-M5.tar.xz
eclipse.jdt.core-M5.zip
*** empty log message ***v_242bM5
-rw-r--r--org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/messages.properties2
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/Util.java13
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/JavaBuilder.java2
3 files changed, 16 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/messages.properties b/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/messages.properties
index 00d0c10b66..100f450daa 100644
--- a/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/messages.properties
+++ b/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/messages.properties
@@ -1,7 +1,7 @@
### JavaBatchCompiler messages.
### compiler version id
-compiler.version = 0.242a
+compiler.version = 0.242b
### scanning
scanning.start = Collecting source files inside {0}
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/Util.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/Util.java
index a5414090a5..f9dc4a6800 100644
--- a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/Util.java
+++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/Util.java
@@ -9,6 +9,7 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
import org.eclipse.jdt.core.*;
import org.eclipse.jdt.internal.compiler.util.CharOperation;
import org.eclipse.jdt.internal.core.util.CharArrayBuffer;
@@ -545,6 +546,18 @@ public static void log(Throwable e){
JavaCore.getPlugin().getLog().log(
new JavaModelStatus(IStatus.ERROR, e));
}
+/*
+ * Add a log entry
+ */
+public static void log(Throwable e, String message) {
+ IStatus status= new Status(
+ IStatus.ERROR,
+ JavaCore.getPlugin().getDescriptor().getUniqueIdentifier(),
+ 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 sepatator.
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/JavaBuilder.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/JavaBuilder.java
index e1f34d8675..128d54021c 100644
--- a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/JavaBuilder.java
+++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/JavaBuilder.java
@@ -108,6 +108,7 @@ protected IProject[] build(int kind, Map ignored, IProgressMonitor monitor) thro
}
ok = true;
} catch (CoreException e) {
+ Util.log(e, "JavaBuilder handling CoreException"); //$NON-NLS-1$
try {
IMarker marker = currentProject.createMarker(ProblemMarkerTag);
marker.setAttribute(IMarker.MESSAGE, Util.bind("build.inconsistentProject")); //$NON-NLS-1$
@@ -116,6 +117,7 @@ protected IProject[] build(int kind, Map ignored, IProgressMonitor monitor) thro
throw e;
}
} catch (ImageBuilderInternalException e) {
+ Util.log(e, "JavaBuilder handling ImageBuilderInternalException"); //$NON-NLS-1$
try {
IMarker marker = currentProject.createMarker(ProblemMarkerTag);
marker.setAttribute(IMarker.MESSAGE, Util.bind("build.inconsistentProject")); //$NON-NLS-1$

Back to the top