Change Splash Image depending on a user preference [message #518179] |
Wed, 03 March 2010 11:07 |
Juan Messages: 29 Registered: July 2009 |
Junior Member |
|
|
Hi everybody!
I need to do something "simple" in principle:
I wanna let the user to select a path to an image to be used as splash
image in my RCP. Now I only can show the .bmp that is in my product
plugin, but i would like to change it. I have tried to do the following
steps:
-1) I created a plugin with the org.eclipse.ui.splashHandlers extension
and placed the .bmps images in it.
-2) I have created a Splash Handler (extending EclipseSplashHandler) and
I have overrided the init(Shell) method using the next:
Image img =
getImage(Activator.getDefault(),"icons/splash_selected_by_user.bmp ");
splash.setImage(img);
super.init(splash);
But it does not work, the default ".bmp" (placed in my RCP product
plugin) is always used though I have specified in the Splash section of
my configuration.product that it should be used the plugin I created in
the step 1) for the splash image.
Please, somebody could give me a clue or help me in this.
Thanks in advance!!!
|
|
|
Powered by
FUDForum. Page generated in 0.03320 seconds