Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2003-10-21 17:07:43 +0000
committerDani Megert2003-10-21 17:07:43 +0000
commitbd2da94edf54f03866fce18a0dcc7e60438cc3b1 (patch)
treec03ba39a5eb5a0552a8fa14d076170010693c2d6
parente061449f0fc101d4d1501d5056d87bcb496fef7e (diff)
downloadeclipse.platform.text-bd2da94edf54f03866fce18a0dcc7e60438cc3b1.tar.gz
eclipse.platform.text-bd2da94edf54f03866fce18a0dcc7e60438cc3b1.tar.xz
eclipse.platform.text-bd2da94edf54f03866fce18a0dcc7e60438cc3b1.zip
Editor status line error message must be cleared if only setting a message
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/EditorStatusLine.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/EditorStatusLine.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/EditorStatusLine.java
index 05dd6856f..ef86a61af 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/EditorStatusLine.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/EditorStatusLine.java
@@ -85,8 +85,12 @@ class EditorStatusLine implements IEditorStatusLine {
if (error)
fStatusLineManager.setErrorMessage(image, message);
- else
+ else {
+ // Clear error message
+ fStatusLineManager.setErrorMessage(null, null);
+
fStatusLineManager.setMessage(image, message);
+ }
if (isMessageEmpty(message))
uninstallStatusLineClearer();

Back to the top