1 11 package org.eclipse.ant.internal.ui.console; 12 13 import org.eclipse.ant.internal.ui.launchConfigurations.TaskLinkManager; 14 import org.eclipse.debug.ui.console.IConsole; 15 import org.eclipse.debug.ui.console.IConsoleLineTrackerExtension; 16 import org.eclipse.jface.text.IRegion; 17 18 21 public class TaskLineTracker implements IConsoleLineTrackerExtension { 22 23 private IConsole fConsole; 24 25 28 public TaskLineTracker() { 29 super(); 30 } 31 32 35 public void init(IConsole console) { 36 fConsole = console; 37 } 38 39 42 public void lineAppended(IRegion line) { 43 TaskLinkManager.processNewLine(fConsole, line); 44 } 45 46 49 public void dispose() { 50 fConsole = null; 51 } 52 53 56 public void consoleClosed() { 57 TaskLinkManager.dispose(fConsole.getProcess()); 58 AbstractJavacPatternMatcher.consoleClosed(fConsole.getProcess()); 59 } 60 } 61 | Popular Tags |