plugin/src/com/carrotgarden/eclipse/space/console/RunnerConsoleImpl.java
/**
	 * Initialize three streams of the console. Must be called from the UI thread,
	 * so synchronization is unnecessary.
	 */
Initialize three streams of the console. Must be called from the UI thread,
so synchronization is unnecessary.
Initialize three streams of the console . Must be called from the UI thread so synchronization is unnecessary .
protected void initializeConsoleStreams(final Display display) {
		if (!initialized) {
			setCommandStream(newOutputStream());
			setErrorStream(newOutputStream());
			setMessageStream(newOutputStream());
			commandColor = new Color(display, new RGB(0, 0, 0));
			messageColor = new Color(display, new RGB(0, 0, 255));
			errorColor = new Color(display, new RGB(255, 0, 0));
			getCommandStream().setColor(commandColor);
			getMessageStream().setColor(messageColor);
			getErrorStream().setColor(errorColor);
			setFont(JFaceResources.getFontRegistry().get("pref_console_font")); 
			initialized = true;
		}
	}
protected void initializeConsoleStreams ( final Display display ) { if ( ! initialized ) { setCommandStream ( newOutputStream ( ) ) ; setErrorStream ( newOutputStream ( ) ) ; setMessageStream ( newOutputStream ( ) ) ; commandColor = new Color ( display , new RGB ( 0 , 0 , 0 ) ) ; messageColor = new Color ( display , new RGB ( 0 , 0 , 255 ) ) ; errorColor = new Color ( display , new RGB ( 255 , 0 , 0 ) ) ; getCommandStream ( ) . setColor ( commandColor ) ; getMessageStream ( ) . setColor ( messageColor ) ; getErrorStream ( ) . setColor ( errorColor ) ; setFont ( JFaceResources . getFontRegistry ( ) . get ( "pref_console_font" ) ) ; initialized = true ; } }
Initialize three streams of the console.
Initialize three streams of the console .
// TODO convert this to use themes // install colors // install font //$NON-NLS-1$