Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Replacing the splash image (via an update)
Replacing the splash image (via an update) [message #332695] Wed, 05 November 2008 14:27 Go to next message
Eclipse UserFriend
Originally posted by: subs._nospam_consertum.com

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.b randing.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
Re: Replacing the splash image (via an update) [message #332701 is a reply to message #332695] Wed, 05 November 2008 21:39 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
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.b randing.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
Re: Replacing the splash image (via an update) [message #332703 is a reply to message #332701] Thu, 06 November 2008 08:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: subs._nospam_consertum.com

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.b rand

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.b randing.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
Re: Replacing the splash image (via an update) [message #332713 is a reply to message #332703] Thu, 06 November 2008 15:33 Go to previous messageGo to next message
Mark Melvin is currently offline Mark MelvinFriend
Messages: 118
Registered: July 2009
Senior Member
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@_nospam_consertum.com>
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.b rand
>
> 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.b randing.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
>
>
Re: Replacing the splash image (via an update) [message #332722 is a reply to message #332713] Thu, 06 November 2008 16:11 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
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@_nospam_consertum.com>
> 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.b rand
>>
>> 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.b randing.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
>>
>>
>
Re: Replacing the splash image (via an update) [message #332727 is a reply to message #332713] Thu, 06 November 2008 17:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: subs._nospam_consertum.com

Hi Mark,

Yup, that looks like my problem - I never thought to look in bugzilla (I
normally do!).

Thanks,

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@_nospam_consertum.com>
> 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.b rand
>>
>> 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.b randing.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
Re: Replacing the splash image (via an update) [message #332729 is a reply to message #332722] Thu, 06 November 2008 17:27 Go to previous message
Eclipse UserFriend
Originally posted by: subs._nospam_consertum.com

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@_nospam_consertum.com>
>> 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.b rand
>>>
>>> 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.b randing.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
Previous Topic:[Fwd: refactoring framework and EMF2DOMSSE]
Next Topic:needs help to setup our org.eclipse.ui.navigator.navigatorContent
Goto Forum:
  


Current Time: Wed Apr 24 18:54:08 GMT 2024

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

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

Back to the top