Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Console with Stop and other actions
Console with Stop and other actions [message #314398] Wed, 11 April 2007 08:18 Go to next message
Eclipse UserFriend
Originally posted by: paulin.spextreme.com

I've been trying to find some information on how to achieve a Console with
some extra buttons the Stop button. Just like the JDT run console.

I can't seem to find how this is done. Looking into IOConsole,
TextConsole, and MessageConsole none of them seem to offer something
obvious.

Am I looking in the right spot or just way off? Any help on how to do this
would be appreciated. My current goal is to just add a stop button so
that would be the simplest case.

Thanks
Steve
Re: Console with Stop and other actions [message #314433 is a reply to message #314398] Thu, 12 April 2007 08:25 Go to previous message
Eclipse UserFriend
Originally posted by: paulin.spextreme.com

Well I figured it out. Just figured I post something in case someone else
is looking for the answer.

First you need to create an extension using the extension point
org.eclipse.ui.console.consolePageParticipants. This is where you setup
the pointer to your object that will do the contributing of actions and
other things to the console.


Next you need to build a IConsolePageParticipant object that you pointed
to above. In this object you get access to the IPageBookViewPart.

A console is a view that is like a book with many pages. Each registered
console is a new page. The contributor allows for the page to know what
it's action bar should be like.

Well I hope this helps someone else.

Steve

PS One other loophole make sure when you define your
consolePageParticipant in the plugin.xml that you also add the enablement
(even if blank). Otherwise you'll get a null pointer when it tries to
create the book page.
Previous Topic:Out of Memory: Heap space
Next Topic:use of eclipse.ini to pass command line arg
Goto Forum:
  


Current Time: Sun Nov 09 17:19:32 EST 2025

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

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

Back to the top