Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Add a console view in RCP(eclipse indigo-3.7)(how to add a console view)
Add a console view in RCP(eclipse indigo-3.7) [message #1234081] Tue, 21 January 2014 07:40 Go to next message
khelan patel is currently offline khelan patelFriend
Messages: 2
Registered: January 2014
Junior Member

I'm using Eclipse Indigo-3.7. I want to add a console view in my RCP APplication.
I added it using the following command in my "" file.

layout.addView(IConsoleConstants.ID_CONSOLE_VIEW, IPageLayout.BOTTOM, .2f, editorArea);

Now i can see the console view part in my application, but how to print a "MessageStream" in my console view part?? I want to transfer my Eclipse's Console messages to my RCP's console. Kindly help me out.

Re: Add a console view in RCP(eclipse indigo-3.7) [message #1257226 is a reply to message #1234081] Wed, 26 February 2014 07:30 Go to previous message
Jonathan Dumont is currently offline Jonathan DumontFriend
Messages: 58
Registered: March 2011
Location: Laval
To enable the log in the Console view, you have to create your console instance to write in it.
For example, here is a piece of code to help you.

     * Reroute default output streams to a new console, added to console view.
    public static void linkDefaultOutStreamToConsole() {
        // Create a msg console
        final MessageConsole console = new MessageConsole("Console", null);

        // Add it to console manager
        ConsolePlugin.getDefault().getConsoleManager().addConsoles(new IConsole[] {vConsole });

        PrintStream printStream = new PrintStream(console.newMessageStream());

        // Link standard output stream to the console

        // Link error output stream to the console


     * Reset output stream to system ones.
    public static void unlinkDefaultOutStreamToConsole() {


Previous Topic:E4 user authentication, session, and authorization based presentation logic
Next Topic:NoClassDefFoundError for imported package
Goto Forum:

Current Time: Wed Sep 19 13:42:41 GMT 2018

Powered by FUDForum. Page generated in 0.01673 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top