Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 164240

Summary: [console] Specify regexps that define source-file clickable-ness in text in the console
Product: [Eclipse Project] Platform Reporter: Endre Stølsvik <eclipse>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3 CC: bokowski
Version: 3.2.1   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Endre Stølsvik CLA 2006-11-11 18:47:41 EST
When you get a stacktrace, in each stacktrace-entry the classname/file is clickable, sending you to the line and column specified (if specified).

However, this would be desirable also in normal console output, e.g. in a heavy log-stream, in particular with IoC, e.g. Spring, a lot of classs names will roll across, and it would be good to be able to click directly on these and be sent to the corresponding file, like insta-Ctrl-Shift-T lookup.

I propose to make it possible, in the style of the "Sunshade" eclipse plugin, to define a set of regexps that define the "quadret" filename, line#, start col, end col - where only the first is mandatory. However, the "filename" should be "smart", in that "com.whatever.Something" also checked "com/whatever/Something", or possibly reverse (depending on which way such a lookup really goes).
Comment 1 Boris Bokowski CLA 2006-11-13 00:10:48 EST
Moving to Debug.  Note that there is a similar, but more general feature request, see bug 156219.
Comment 2 Darin Wright CLA 2006-11-13 10:34:05 EST
See the extension point org.eclipse.ui.console.consolePatternMatchListeners - it supports regular expression pattern matching in consoles, and there is support to add hyperlinks to text consoles (see TextConsole.addHyperlink(...)).
Comment 3 Darin Wright CLA 2007-02-08 14:56:06 EST
Marking as works for me, since support exists for this.
Comment 4 Endre Stølsvik CLA 2007-02-09 03:04:34 EST
Where's the GUI setup page for this, then?? How can I have all my classnames that appear in the logstream clickable (and preferrably colorized, bug 164241), w/o resorting to code?
Comment 5 Darin Wright CLA 2007-02-09 13:04:56 EST
Sorry, there's no GUI for it... but perhaps this is a dup, or similar to bug 40705? I would suggest to add your reqeusts there. We do not plan on working on this in the 3.3 time frame.