public final class OutputVisitor extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
OutputVisitor.Context |
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_PRIORITY
property for success Action.
|
static String |
ACTION_QUESTION
property for success Action.
|
Constructor and Description |
---|
OutputVisitor()
Creates a new instance of OutputVisitor
|
OutputVisitor(OutputVisitor.Context context)
Creates a new instance of OutputVisitor
|
Modifier and Type | Method and Description |
---|---|
Color |
getColor() |
Color |
getColor(InputOutput io)
Get the color.
|
OutputVisitor.Context |
getContext() |
String |
getLine() |
OutputListener |
getOutputListener() |
Action |
getSuccessAction() |
boolean |
isImportant()
at least one of the
OutputProcessor s added a OutputListener and
marked it as important. |
boolean |
isLineSkipped() |
void |
resetVisitor()
not to be called by the OutputProcessors.
|
void |
setColor(Color color) |
void |
setLine(String line) |
void |
setOutputListener(OutputListener listener)
add output line highlight and hyperlink via
org.openide.windows.OutputListener instance. |
void |
setOutputListener(OutputListener listener,
boolean isImportant)
add output line highlight and hyperlink via
org.openide.windows.OutputListener instance. |
void |
setOutputType(IOColors.OutputType outputType)
Set output type that will be used in method
OutputVisitor.getColor(org.openide.windows.InputOutput) . |
void |
setSuccessAction(Action sAction)
add an action that should be performed when the build finishes.
|
void |
skipLine() |
public static final String ACTION_QUESTION
public static final String ACTION_PRIORITY
public OutputVisitor()
public OutputVisitor(OutputVisitor.Context context)
public void resetVisitor()
public OutputListener getOutputListener()
public void setOutputListener(OutputListener listener)
org.openide.windows.OutputListener
instance.public void setOutputListener(OutputListener listener, boolean isImportant)
org.openide.windows.OutputListener
instance.isImportant
- mark the line as important (useful in Nb 4.1 only)public boolean isImportant()
OutputProcessor
s added a OutputListener
and
marked it as important.public Action getSuccessAction()
public void setSuccessAction(Action sAction)
public String getLine()
public void setLine(String line)
public void skipLine()
public boolean isLineSkipped()
public Color getColor(InputOutput io)
OutputVisitor.setOutputType(org.openide.windows.IOColors.OutputType)
, try to
resolve the actual color. If the output type was not set, or the actual
color cannot be resolved, return value that was set using
OutputVisitor.setColor(java.awt.Color)
; supported.public Color getColor()
public void setColor(Color color)
public void setOutputType(IOColors.OutputType outputType)
OutputVisitor.getColor(org.openide.windows.InputOutput)
.@CheckForNull public OutputVisitor.Context getContext()