[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Pb with console view (another one!)

Hi,

I have built a new launcher in order to launch an external compiler for my language. Of course, I would like to write compilation results to the console. The first time I launch the compiler, results are correctly printed, but the following times, the console remains desperatly empty. The code I use to do that is the following:

    <code>
	// getting the console and opening a stream
	MessageConsole console = LotosPlugin.FindConsole(myConsole_name);
	MessageConsoleStream outCons = console.newMessageStream();
	console.activate();
	outCons.setActivateOnWrite(true);

	// writting the command result onto the console
	console.clearConsole();
	outCons.println(consoleText);
		
	// displaying the console view
	IConsoleView consoleView = getConsoleView();
	if (consoleView != null) consoleView.display(console);
    </code>

The "FindConsole" method is the one from the FAQ 307 of the Official Eclipse FAQ.

The "GetConsoleVIew" returns the IViewPart getting from page.findView(IConsoleConstants.ID_CONSOLE_VIEW).

I read a lot of messages about the console topic, but I didn't find anything which could help me.

Is somebody knows how I can do solve this problem? Any help is welcome, I have no more ideas!

Nath.