Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Own messages in the splash screen(How to add your own messages in the slash screen)
Own messages in the splash screen [message #489316] Fri, 02 October 2009 12:10 Go to next message
Catalin Gerea is currently offline Catalin GereaFriend
Messages: 89
Registered: July 2009
Location: Bucharest, Romania
Member

I have a small RCP application consisting in several plug-ins.

When each plug-in is loaded I want to add a message along with the progress bar displayed in the splash screen. Similar with the messages I see when my Eclipse IDE is starting.

Do I have to use a particular extension point for this? Or is there a messages service I need to register my plug-in's to it in order to display those messages?

Any help would be appreciated.

Catalin


Time is what you make of it.
Re: Own messages in the splash screen [message #489417 is a reply to message #489316] Fri, 02 October 2009 21:22 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
I believe you will need to use the org.eclipse.ui.splashHandlers extension point.

The splash screen you see on eclipse with the progress bar is implemented by EclipseSplashHandler. You might be able to extend that, or perhaps just use it as an example.

-Andrew

Catalin Gerea wrote on Fri, 02 October 2009 08:10
I have a small RCP application consisting in several plug-ins.

When each plug-in is loaded I want to add a message along with the progress bar displayed in the splash screen. Similar with the messages I see when my Eclipse IDE is starting.

Do I have to use a particular extension point for this? Or is there a messages service I need to register my plug-in's to it in order to display those messages?

Any help would be appreciated.

Catalin

Re: Own messages in the splash screen [message #489456 is a reply to message #489417] Sat, 03 October 2009 11:18 Go to previous messageGo to next message
Catalin Gerea is currently offline Catalin GereaFriend
Messages: 89
Registered: July 2009
Location: Bucharest, Romania
Member

Hello Andrew

Thank you for your reply.

I already implement the org.eclipse.ui.splashHandlers in one of the plugins (so it wouldn't be a problem to add it to all the plugins).
I was able to customize the color of the progress bar and the color of the text as well as the position of the text.

My splash handler class is extending BasicSplashHandler and not EclipseSplashHandler.

I looked now at the code of the EclipseSplashHandler but I did not found any public or protected method to set the message. Nor any method to set the time when the message is displayed. I saw that the text message is written using a plain drawText() method and this can be easily duplicated.

But what I do not know is when the splash handler code is called. Is there a order of executing the extension points implemented by a plug-in?


Time is what you make of it.
Re: Own messages in the splash screen [message #489720 is a reply to message #489456] Mon, 05 October 2009 16:10 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
Catalin,
You only need one splash handler, it takes care of managing the entire
splash. After a second look, BasicSplashHandler is probably sufficient,
the EclipsesplashHandler is just added extra static text with the build-id.

The key there is the BasicSplashHandler.getBundleProgressMonitor(). The
workbench registers a StartupProgressBundleListenerlistener on the osgi
framework, it receives events as bundles get started, and this is where
the text you see beside the progress bar in the eclipse IDE splash
screen comes from. This listener calls the progress monitor it got from
the splash handler.

You can probably extend the AbsolutePositionProgressMonitorPart to
change the message it gets, or perhaps register your own listener on the
framework and interpret the BundleEvent's yourself.

See Workbench.runStartupWithProgress to see where these get hooked together.

-Andrew

Catalin Gerea wrote:
> Hello Andrew
>
> Thank you for your reply.
>
> I already implement the org.eclipse.ui.splashHandlers in one of the
> plugins (so it wouldn't be a problem to add it to all the plugins).
> I was able to customize the color of the progress bar and the color of
> the text as well as the position of the text.
>
> My splash handler class is extending BasicSplashHandler and not
> EclipseSplashHandler.
>
> I looked now at the code of the EclipseSplashHandler but I did not found
> any public or protected method to set the message. Nor any method to set
> the time when the message is displayed. I saw that the text message is
> written using a plain drawText() method and this can be easily duplicated.
>
> But what I do not know is when the splash handler code is called. Is
> there a order of executing the extension points implemented by a plug-in?
Previous Topic:Let user add new properties to property page
Next Topic:Trouble extending WizardNewFileCreationPage
Goto Forum:
  


Current Time: Thu Mar 28 14:45:25 GMT 2024

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

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

Back to the top