From 11a26ae0a21c071e91f44b89d65fb99483c15b44 Mon Sep 17 00:00:00 2001 From: Randy Rohrbach Date: Tue, 1 Jun 2010 19:56:39 +0000 Subject: [PATCH] This is a continuation of Bugzilla 312098 : [Memory Browser] do not create a rendering automatically when Memory Browser is opened. Changed the code dealing with the Wrong Expression displayed to be used consistently. --- .../debug/ui/memory/memorybrowser/GoToAddressBarWidget.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/GoToAddressBarWidget.java b/memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/GoToAddressBarWidget.java index 7257f3e6225..b80e8a590ba 100644 --- a/memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/GoToAddressBarWidget.java +++ b/memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/GoToAddressBarWidget.java @@ -106,10 +106,6 @@ public class GoToAddressBarWidget { else fEmptyExpression.hide(); - clearError(); - } - - private void clearError() { fWrongExpression.hide(); } @@ -144,7 +140,7 @@ public class GoToAddressBarWidget { */ public void handleExpressionStatus(final IStatus message) { if (message.isOK()) { - clearError(); + fWrongExpression.hide(); } else { fWrongExpression.setDescriptionText(message.getMessage()); fWrongExpression.show();