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

Bug 76894

Summary: Console should have ability to open things that look like classes
Product: [Eclipse Project] JDT Reporter: Gregory Gerard <ggerard>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.0.1   
Target Milestone: ---   
Hardware: All   
OS: Windows XP   
Whiteboard:

Description Gregory Gerard CLA 2004-10-24 00:23:07 EDT
So the console generates hyperlinks when it sees something that looks like an
exception allowing one to navigate to the offending code.

I'd love to see the console with a similar ability but for all things that just
look like class names.

It shouldn't be a terrible ineffient operation since only the visible portion of
the console would need to scan for class entities and things that seem to match
could be checked against the same index that the Navigate->Open Type uses. A
right click on the "link" would allow one to navigate through ambiguous matches.
Comment 1 Darin Wright CLA 2004-10-26 10:10:53 EDT
Just curious, what sort of application produces output that links back to the 
source code (i.e. other than stack traces from exceptions)? Can you attach 
sample output?
Comment 2 Darin Wright CLA 2004-10-26 10:12:45 EDT
Marking as a dup.

*** This bug has been marked as a duplicate of 24826 ***
Comment 3 Gregory Gerard CLA 2004-10-26 15:38:24 EDT
Many of the libraries we use (free and commercial, under our control and
otherwise) print the full class name out to the console as part of logging.

This is nice because there's no ambiguity as to which class but currently not
navigable.

Btw, is there a way to have a way of adding scripting to the console? The use
case would be, when a certain string comes through, do this script action. In
otherwords, associate a regex with an action.
Comment 4 Darin Wright CLA 2004-10-26 15:43:10 EDT
in 3.1, see consolePatternMatchListeners extension point - your listener can 
perform any action it wants when notified of a match (such as add a hyperlink).