1 11 package org.eclipse.ui.console; 12 13 import java.io.IOException ; 14 15 34 public class MessageConsoleStream extends IOConsoleOutputStream { 35 36 private MessageConsole fMessageConsole; 37 38 43 public MessageConsoleStream(MessageConsole console) { 44 super(console); 45 fMessageConsole = console; 46 } 47 48 53 public void print(String message) { 54 try { 55 write(message); 56 } catch (IOException e) { 57 ConsolePlugin.log(e); 58 } 59 } 60 61 62 65 public void println() { 66 try { 67 write("\n"); } catch (IOException e) { 69 ConsolePlugin.log(e); 70 } 71 } 72 73 79 public void println(String message) { 80 print(message + "\n"); } 82 83 88 public MessageConsole getConsole() { 89 return fMessageConsole; 90 } 91 } 92 | Popular Tags |