Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2007-05-02 17:22:08 +0000
committerDarin Wright2007-05-02 17:22:08 +0000
commit72e7b92759603655001656642d156052f752993f (patch)
treecdca402670fdee4a4e4334766ca0511dec924334 /org.eclipse.debug.ui
parent9e45b74a1c396cd04f90ac9208ce157686a93404 (diff)
downloadeclipse.platform.debug-72e7b92759603655001656642d156052f752993f.tar.gz
eclipse.platform.debug-72e7b92759603655001656642d156052f752993f.tar.xz
eclipse.platform.debug-72e7b92759603655001656642d156052f752993f.zip
Bug 184883 Inspecting code results in flashing text in popup
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/ExpressionContentProvider.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/ExpressionContentProvider.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/ExpressionContentProvider.java
index 5dcdb0bb0..1ae488b82 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/ExpressionContentProvider.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/model/elements/ExpressionContentProvider.java
@@ -10,6 +10,8 @@
*******************************************************************************/
package org.eclipse.debug.internal.ui.model.elements;
+import java.util.LinkedHashSet;
+
import org.eclipse.core.runtime.CoreException;
import org.eclipse.debug.core.model.IErrorReportingExpression;
import org.eclipse.debug.core.model.IExpression;
@@ -26,7 +28,12 @@ public class ExpressionContentProvider extends VariableContentProvider {
if (parent instanceof IErrorReportingExpression) {
IErrorReportingExpression expression = (IErrorReportingExpression) parent;
if (expression.hasErrors()) {
- return expression.getErrorMessages();
+ String[] messages = expression.getErrorMessages();
+ LinkedHashSet set = new LinkedHashSet(messages.length);
+ for (int i = 0; i < messages.length; i++) {
+ set.add(messages[i]);
+ }
+ return set.toArray();
}
}
if (parent instanceof IExpression) {

Back to the top