Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 33759 - JUnit result message in status bar is sticking too long [JUnit]
Summary: JUnit result message in status bar is sticking too long [JUnit]
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Erich Gamma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-04 10:20 EST by Philipe Mulet CLA
Modified: 2004-06-08 06:09 EDT (History)
0 users

See Also:


Attachments
Status bar shouldn't show JUnit failures (292.74 KB, image/jpeg)
2003-03-04 10:21 EST, Philipe Mulet CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2003-03-04 10:20:22 EST
Build 20030227

I ran some JUnit test, which had legitimate errors, and the status bar of my 
perspective mentionned these errors.

Since then I fixed the tests, and ran them successfully. Then I closed the 
JUnit views (both in Java and debug perspective), and the status bar displayed 
again the original JUnit test failures !?!

See attached screenshot.
Comment 1 Philipe Mulet CLA 2003-03-04 10:21:33 EST
Created attachment 3827 [details]
Status bar shouldn't show JUnit failures
Comment 2 Erich Gamma CLA 2003-03-04 10:54:45 EST
This is a consequence of the JUnit view to steal the status line of the active 
part to show its progress message. This is not clean and can result in problem 
you are seeing. The alternative is to be clean, but in this case the user will 
not see any progress messages unless the JUnit view is active.
Comment 3 Adam Kiezun CLA 2003-03-04 10:58:37 EST
looks like fix for bug 14426 exposed this bug (now you see the thing in red so 
it's much more prominent)
Comment 4 Sebastian Davids CLA 2003-05-05 15:32:09 EDT
could not reproduce bug in 

Version 2.1.0
Build id: 20030429156
Comment 5 Erich Gamma CLA 2003-05-06 06:32:26 EDT
The problem is still there. The issue is that there is no notion of a global 
status line in Eclipse. The status line belongs to a part and the JUnit plugin 
is writing into the status line of the currently active part. Often this isn't 
noticable since the part will update the status line as an item is selected 
(i.e., in the package explorer). However, if a part never updates the status 
line, then the JUnit message will stick around.

A possible solution is to track the owner of the status line JUnit is writing 
into and to restore the old status line. However, the challenge is still when 
the restore should be done.

Leaving the bug open.
Comment 6 Erich Gamma CLA 2004-06-08 06:09:20 EDT
got fixed some time ago by no longer stealing the status line from other parts