[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Replacing the splash image (via an update)

Andrew,

Removing -showsplash from eclipse.ini doesn't work (i.e doesn't find the correct splash screen).

I have the osgi.splashPath in the config.ini and it references the 'base' branding plugin (no qualifier) - removing it shows no splash.

Any other suggestions?

Thanks,

Andrew Niefer wrote:
Yes Mark,
I do believe you are correct. That bug (240915) would have existed back as far as 3.3.0.


One workaround for the problem would be to remove the -showsplash from the eclipse.ini.

The order of precedence goes:
1) -showsplash <arg> : the native launcher finds the splash screen and displays it before starting java. This overrides everything in the config.ini
2) else, config.ini: osgi.splashLocation, osgi.splashPath. In Java, Main finds the splash screen and displays it.


Due to the bug in the launcher, it is finding the wrong one. If you remove the -showsplash, then Main will look instead and it does not have that bug so should find the correct one. The difference between the two cases is the launcher one shows earlier (the time it takes to start the jvm).

-Andrew

Mark Melvin wrote:
Is it possible this bug is affecting Eclipse all the way back to 3.3.1? I think it is plausible as this code was wrong for awhile.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=240915

(Note the bug I filed that exactly describes what you are seeing - https://bugs.eclipse.org/bugs/show_bug.cgi?id=240731)

Mark.


On Thu, 06 Nov 2008 03:41:46 -0500, Derek <subs@xxxxxxxxxxxxxxxxxxxxx> wrote:


Hi Andrew,

Thanks for the reply.

I am already using both -showsplash in the eclipse.ini and osgi.splashPath in the config.ini:
osgi.splashPath=platform:/base/plugins/com.company.product.brand


I have found that after the update, it is still showing the original splash image. If I rename the plugin containing the original image, then no splash is shown, even though there is a newer version of the plugin installed.

Something, somewhere has a hard-coded link to the exact version number of the branding plugin - but I can't find it... Any further ideas?

Thanks,

Andrew Niefer wrote:
How are you specifying the splash bmp to use?
-showsplash in the eclipse.ini file?
osgi.splashLocation in config.ini ?
osgi.splashPath in config.ini?
Both of -showsplash and osgi.splashPathwill do a search in the plugins folder disk for the given bundle and will choose the highest version.
(-showsplash org.eclipse.platform or osgi.splashPath=base:/plugins/org.eclipse.platform).
-showplash with a full path, or osgi.splashLocation point directly to the bmp.
If you are using the old update which is unable to update the eclipse.ini or config.ini, the way to get an updated splash screen is to make sure you use splashPath or -showsplash to do a search.
Even if you are using p2, it is easiest to do it this way, unless you craft p2 metadata to adjust the splash location directly.
It should not be necessary to clean the cache, as the bitmap is only saved there after the location has been chosen and if we need to extract the bitmap out of a jar.
-Andrew
Derek wrote:
Hi,

In our application, we provide our own splash image. This is working fine. We are now wish to update the splash image via the update mechanism.

The splash image is located in our branding plugin, and we successfully update the plugin (with the new image), but when Eclipse restarts, the old image is still shown.

I noticed the image seemed to be cached in eclipse/configuration/org.eclipse.equinox.launcher/com.xxx.branding.nnnnn/splash.bmp so I deleted it - but still the old image is loaded.

Any ideas how I can replace it?

Config:
Eclipse 3.3.1
Windows XP
Java 1.6


Thanks





--
Derek