1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

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.

This commit is contained in:
Randy Rohrbach 2010-06-01 19:56:39 +00:00
parent 082b4787c3
commit 11a26ae0a2

View file

@ -106,10 +106,6 @@ public class GoToAddressBarWidget {
else else
fEmptyExpression.hide(); fEmptyExpression.hide();
clearError();
}
private void clearError() {
fWrongExpression.hide(); fWrongExpression.hide();
} }
@ -144,7 +140,7 @@ public class GoToAddressBarWidget {
*/ */
public void handleExpressionStatus(final IStatus message) { public void handleExpressionStatus(final IStatus message) {
if (message.isOK()) { if (message.isOK()) {
clearError(); fWrongExpression.hide();
} else { } else {
fWrongExpression.setDescriptionText(message.getMessage()); fWrongExpression.setDescriptionText(message.getMessage());
fWrongExpression.show(); fWrongExpression.show();