1 11 package org.eclipse.ui.console; 12 13 import org.eclipse.jface.resource.ImageDescriptor; 14 import org.eclipse.ui.internal.console.IOConsolePage; 15 import org.eclipse.ui.part.IPageBookViewPage; 16 17 27 public class MessageConsole extends IOConsole { 28 29 34 public static final String P_FONT = IConsoleConstants.P_FONT; 35 36 41 public static final String P_STREAM_COLOR = IConsoleConstants.P_STREAM_COLOR; 42 43 48 public static final String P_TAB_SIZE = IConsoleConstants.P_TAB_SIZE; 49 50 55 public static final int DEFAULT_TAB_SIZE = IConsoleConstants.DEFAULT_TAB_SIZE; 56 57 63 public MessageConsole(String name, ImageDescriptor imageDescriptor) { 64 this(name, imageDescriptor, true); 65 } 66 67 76 public MessageConsole(String name, ImageDescriptor imageDescriptor, boolean autoLifecycle) { 77 super(name, IConsoleConstants.MESSAGE_CONSOLE_TYPE, imageDescriptor, autoLifecycle); 78 } 79 80 90 public MessageConsoleStream newMessageStream() { 91 return new MessageConsoleStream(this); 92 } 93 94 97 public IPageBookViewPage createPage(IConsoleView view) { 98 IOConsolePage page = (IOConsolePage) super.createPage(view); 99 page.setReadOnly(); 100 return page; 101 } 102 103 106 public IOConsoleInputStream getInputStream() { 107 throw new UnsupportedOperationException ("Message Console does not support user input"); } 109 110 111 119 protected void appendToDocument(String text, MessageConsoleStream stream) { 120 } 121 } 122 | Popular Tags |