1 11 package org.eclipse.ant.internal.ui.console; 12 13 import org.eclipse.ui.console.PatternMatchEvent; 14 15 public class JikesJavacPatternMatcher extends AbstractJavacPatternMatcher { 16 17 21 public void matchFound(PatternMatchEvent event) { 22 String matchedText= getMatchedText(event); 23 if (matchedText == null) { 24 return; 25 } 26 int start = matchedText.indexOf('\"')+1; 27 int end = matchedText.indexOf('\"', start); 28 String filePath = matchedText.substring(start, end); 29 int eventOffset= event.getOffset(); 30 int fileStart = matchedText.indexOf(filePath) + eventOffset; 31 int fileLength = filePath.length(); 32 33 int lineNumber = getLineNumber(eventOffset, false); 34 addLink(filePath, lineNumber, fileStart, fileLength, fgErrorType); 36 } 37 } | Popular Tags |