1 11 package org.eclipse.jdt.internal.debug.ui.console; 12 13 import org.eclipse.jface.text.BadLocationException; 14 import org.eclipse.ui.console.IHyperlink; 15 import org.eclipse.ui.console.PatternMatchEvent; 16 import org.eclipse.ui.console.TextConsole; 17 18 19 23 public class JavaNativeConsoleTracker extends JavaConsoleTracker { 24 public void matchFound(PatternMatchEvent event) { 25 try { 26 int offset = event.getOffset(); 27 int length = event.getLength(); 28 TextConsole console = getConsole(); 29 IHyperlink link = new JavaNativeStackTraceHyperlink(console); 30 console.addHyperlink(link, offset+1, length-2); 31 } catch (BadLocationException e) { 32 } 33 } 34 35 } 36 | Popular Tags |