aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2011-06-09 11:17:41 -0700
committerAndroid Code Review <code-review@android.com>2011-06-09 11:17:41 -0700
commit0fcd2d039245ff3b0bd84d3fc9a2050dd34ad3b0 (patch)
tree9fa0b1ac4f144dc288dda30e1657bcc91a27670d
parent422c71a3045270f5de478590fdb6a5584d08d335 (diff)
parent7352d61f670c44e2e59df991e0c1bc6889ff4df0 (diff)
downloadsdk-0fcd2d039245ff3b0bd84d3fc9a2050dd34ad3b0.zip
sdk-0fcd2d039245ff3b0bd84d3fc9a2050dd34ad3b0.tar.gz
sdk-0fcd2d039245ff3b0bd84d3fc9a2050dd34ad3b0.tar.bz2
Merge "Hide ClassNotFoundExceptions from the error console."
-rw-r--r--eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/RenderLogger.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/RenderLogger.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/RenderLogger.java
index 5ec50c9..ea9e568 100644
--- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/RenderLogger.java
+++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/RenderLogger.java
@@ -102,6 +102,17 @@ class RenderLogger extends LayoutLog {
String description = describe(message);
AdtPlugin.log(throwable, "%1$s: %2$s", mName, description);
if (throwable != null) {
+ if (throwable instanceof ClassNotFoundException) {
+ // The project callback is given a chance to resolve classes,
+ // and when it fails, it will record it in its own list which
+ // is displayed in a special way (with action hyperlinks etc).
+ // Therefore, include these messages in the visible render log,
+ // especially since the user message from a ClassNotFoundException
+ // is really not helpful (it just lists the class name without
+ // even mentioning that it is a class-not-found exception.)
+ return;
+ }
+
mHaveExceptions = true;
}