|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jmlspecs.eclipse.jdt.internal.compiler.util.Log
org.jmlspecs.eclipse.jdt.ui.Console
public class Console
Nested Class Summary | |
---|---|
static class |
Console.StreamToConsole
This class is an OutputStream that, when written to, writes the data to the Eclipse Console supplied in the constructor. |
Field Summary |
---|
Fields inherited from class org.jmlspecs.eclipse.jdt.internal.compiler.util.Log |
---|
log, on |
Method Summary | |
---|---|
java.io.PrintStream |
consolePrintStream()
Creates a PrintStream that, when written to, writes to the Eclipse Console of the current log object |
static void |
createLog(java.lang.String consoleName,
org.eclipse.core.runtime.Plugin plugin)
Creates a Console Log and sets the current log object |
org.eclipse.ui.console.MessageConsoleStream |
getConsoleStream()
Creates, if necessary, and returns an instance of the stream to use to write to the console |
void |
ierrorlog(java.lang.String msg,
java.lang.Throwable e)
Records an error message |
void |
ilog(java.lang.String msg)
Records an informational message |
static java.io.PrintStream |
logPrintStream()
Creates a PrintStream that, when written to, writes to the Eclipse Console of the current log object |
Methods inherited from class org.jmlspecs.eclipse.jdt.internal.compiler.util.Log |
---|
errorlog, initializeState, log |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void createLog(java.lang.String consoleName, org.eclipse.core.runtime.Plugin plugin)
consoleName
- The name of the console to be logged toplugin
- The plugin object using this logpublic static java.io.PrintStream logPrintStream()
public org.eclipse.ui.console.MessageConsoleStream getConsoleStream()
public void ilog(java.lang.String msg)
ilog
in class Log
msg
- The message to logpublic void ierrorlog(java.lang.String msg, java.lang.Throwable e)
ierrorlog
in class Log
msg
- The message to loge
- An associated exception (may be null)public java.io.PrintStream consolePrintStream()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |