|Re: Own messages in the splash screen [message #489720 is a reply to message #489456]
||Mon, 05 October 2009 12:10
| Andrew Niefer
Registered: July 2009
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.
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
> 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?
Powered by FUDForum
. Page generated in 0.01728 seconds