Summary: | Allow external programs to create tasks and markers through regex matches on the output | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Ed Burnette <ed.burnette> |
Component: | Debug | Assignee: | Darin Wright <darin.eclipse> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | enhancement | ||
Priority: | P2 | CC: | cocoakevin |
Version: | 2.1 | ||
Target Milestone: | 3.1 M2 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Ed Burnette
2002-11-20 21:22:39 EST
This is a duplicate - but better describes the problem, so I will leave it as the master. We do not have a regular expression facility. We may not be able to support such an extension. This is going to be deferred for post 2.1 consideration. We do not have proper regular expression matching for 2.1. For a workaround, you can implement a console line listener. @see extension point org.eclipse.debug.ui.consoleLineTrackers There are several examples: * JavaConsoleTracker * JavacLineTracker Re-open for 3.1 consideration and generic console work. Regex pattern matching implemented in new IOConsole (see IPatternMatchListener, PatternMatchEvent). This functionality is not available in ProcessConsole yet. Filed separate bug #72167 to migrate that console to the new code. Darin, please verify The basic infrastructure is now present to perform regular expression matching in a console. What the listener does with the matches is up to the listener implementation (add markers, hyperlinks, etc). I'd rather leave the action up to a listener, rather than provide all sorts of built-in possibilties. I'm also going to suggest that we add an extension point to register regular expressions for pattern match listeners, with delegates that are instantiated lazily when a match is found. I will add this request to the bug that is still open - bug 72167. Verified (with Javadoc modifications). |