This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 49693 - Output window with new information should be marked
Summary: Output window with new information should be marked
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Milos Kleint
Keywords: UI
Depends on: 48811
Blocks: 70469
  Show dependency tree
Reported: 2004-09-29 14:43 UTC by zikmund
Modified: 2008-12-22 23:00 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description zikmund 2004-09-29 14:43:41 UTC
The output window which added some content since
the last output window visit should be marked as
"modified". It is very necessary for Tomcat output
and WebApp context logs.

Probably a modification star from editor could be
used, or the bold window title could signalize the
BTW: I don't think that the meaning of bold title
as 'output window is alive' in current
implementation is much informative for users.
Comment 1 _ tboudreau 2004-09-29 18:40:42 UTC
Issue 48811 (already written for the bow team, and scheduled for integration after 4.0 is 
branched) could solve this - you can make a tab "blink" a few times when you want to 
(works with sliding buttons as well).  The demo I used for testing it was to make the 
output window do exactly what you request.

However, there is a *much* simpler solution you could do right now, i.e.:

public class WrapperOutput implements OutputWriter {
   private OutputWriter realOutput;
   long timestamp = -1;
   public void println (String s) {
      if (System.currentTimeMillis() - timestamp > someNumberOfMilliseconds) {
        realOutput.printlin ("-----------------------------------------");

In other words, if you really want the output window to do this for you, I can't think of a 
way the output window could really help - there's no obvious time to *clear* the "*" or 
whatever that's appended, but you could easily do this just by printing some kind of 
divider if a long enough time has gone by since the last write.
Comment 2 _ tboudreau 2006-08-16 01:57:57 UTC
Here's a very reasonable solution to this that requires no changes to the output
 - Close the log output stream if more than n minutes go by with no writes
    - Tab will become non-bold
 - Write to the stream again when you need to
    - Stream will be reopened and tab/title will become bold again
    - If you want, find the output TC and call requestAttention() on it

I don't know what other way there would be to mark the tab - requestAttention()
is there for that purpose, and you can use the open state of the stream to
additionally indicate what you want.