public class CommandOutputParser
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Console |
console |
protected errorlist.DefaultErrorSource.DefaultError |
lastError |
| Constructor and Description |
|---|
CommandOutputParser(org.gjt.sp.jedit.View v,
errorlist.DefaultErrorSource es,
java.awt.Color defaultColor)
Creates an instance of an output parser.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
display(java.awt.Color c,
java.lang.String text) |
protected void |
display(java.lang.String text) |
void |
finishErrorParsing() |
java.awt.Color |
getColor() |
int |
processLine(java.lang.String text)
Processes a line without displaying it to the Output
|
int |
processLine(java.lang.String text,
boolean disp)
Process a line of input.
|
void |
setDirectory(java.lang.String currentDirectory) |
protected errorlist.DefaultErrorSource.DefaultError lastError
protected Console console
public CommandOutputParser(org.gjt.sp.jedit.View v,
errorlist.DefaultErrorSource es,
java.awt.Color defaultColor)
v - - the current Viewes - - An ErrorSource which corresponds to the plugin which is generating the errors.defaultColor - - the default color to use when errors are not found
TODO: Use the es to determine which errormatchers to look at?public final int processLine(java.lang.String text)
public int processLine(java.lang.String text,
boolean disp)
text - a line of textdisp - if true, will also send to the Output.public java.awt.Color getColor()
public void setDirectory(java.lang.String currentDirectory)
protected void display(java.awt.Color c,
java.lang.String text)
protected void display(java.lang.String text)
public void finishErrorParsing()