Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 40705 - [console] filtering console output
Summary: [console] filtering console output
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 69248 70596 164241 173275 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-07-24 08:33 EDT by Darin Wright CLA
Modified: 2009-08-30 02:32 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Wright CLA 2003-07-24 08:33:50 EDT
While you're at it, it would be helpful to supply an extension to filter or 
munge the lines being written to the console. Currently you can color the 
lines in a very limited way, and you can get a notification of new lines (to 
create hyperlinks, etc.) but you can't truly filter them. By filter I mean to 
have some code that gets a notice of each line or block of lines, and it can 
decide what the console should really display. You might want to supress that 
line altogether, display it unmodified, or display something else entirely.

Use case: I am writing a plugin that runs an external tool which generates 
lots and lots of output. Some of the output is in a specific format, for 
example ">>>> ...." is output when a new process starts and "<<<< ...." is 
output when a process stops. The .... is info about what the process is 
including the process number so a reader can match them up. I don't want to 
user to see all that junk; I just want to read it and use it to update a view 
or the status line. I want the user to see the other lines though.

Right now I'm using a consoleLineTrackers extension to notice those lines and 
do something with them but the user sees them too.

Another user case: the external tool reports errors in input files using a 
very long nfs mounted UNIX filename which means nothing to the user who is 
running NT. I want to rewrite those error messages into a shorter, hyperlinked 
NT style filename. I can't modify the tool that I'm running. I could run 
another tool that forks the first tool and filters its output but that's a 
pain - I'd rather do it right in the plugin.
Comment 1 Darin Wright CLA 2003-08-07 14:16:42 EDT
consider for 3.0

* it should be fairly simple to add filter - i.e. the filter would receive all 
output and pass along modified output to the console.
* issue is what happens when there are multiple filters (who goes first?)
Comment 2 Darin Wright CLA 2004-03-05 17:20:30 EST
Deferred
Comment 3 Darin Wright CLA 2004-06-28 15:37:50 EDT
Re-open for 3.1 consideration (perhaps related to folding?)
Comment 4 Darin Wright CLA 2004-07-15 09:14:03 EDT
*** Bug 69248 has been marked as a duplicate of this bug. ***
Comment 5 Darin Wright CLA 2004-07-22 12:16:38 EDT
*** Bug 70596 has been marked as a duplicate of this bug. ***
Comment 6 Darin Wright CLA 2004-11-11 14:13:09 EST
Marking as later. Not planned for 3.1.
Comment 7 Darin Wright CLA 2007-02-07 17:33:20 EST
*** Bug 173275 has been marked as a duplicate of this bug. ***
Comment 8 Darin Wright CLA 2007-02-08 17:00:52 EST
*** Bug 164241 has been marked as a duplicate of this bug. ***
Comment 9 Eclipse Webmaster CLA 2009-08-30 02:32:35 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.