I think what you are looking for is a custom splash handler:
The native launcher of Eclipse creates the window for the splash screen and draws the configured bitmap on it. Any additional functionality (e.g. the progress bar) is implemented in Java. Since Eclipse 3.3. this implementation can be customized through the extension point org.eclipse.ui.splashHandler.
The default implementation is org.eclipse.ui.internal.splash.EclipseSplashHandler
(source). You can either extend your custom implementation from this or any sub class of it or you can implement your own custom handler from scratch.
The init
method of your custom handler implementation is called with a Shell
that represents the splash window. You can easily add additional controls to the splash screen, including a Hyperlink
control or a Label
with a mouse listener.
Latest Eclipse PDE (not tested with Photon) can even generate an interactive splash example. Double click on the MAINFEST.MF of your main UI plugin -> Extensions -> Add.. -> select org.eclipse.ui.splashHandler
-> Select Splash Handler
template at the bottom -> Next -> Select Interactive - A simulated log-in session
-> ensure that Add a default splash screen to this plug-in
is checked.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…