Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » -showsplash option does not work(-showsplash pluginID)
-showsplash option does not work [message #543589] Tue, 29 June 2010 18:01 Go to next message
Hao Missing name is currently offline Hao Missing name
Messages: 115
Registered: July 2009
Senior Member
We are using eclipse v3.4 and created a branding plugin com.dfs.framework.bfcc.pcc.sfcc.dd.platform.branding. Under the root of the plugin, we have a bmp file called splash.bmp.

We run eclipse as
eclipse -showsplash com.dfs.framework.bfcc.pcc.sfcc.dd.platform.branding

eclipse does not show the splash screen using the splash.bmp under the root of the plugin.

What's wrong with our command?

thanks!
hao
Re: -showsplash option does not work [message #543616 is a reply to message #543589] Wed, 30 June 2010 00:20 Go to previous messageGo to next message
Michael Pellaton is currently offline Michael Pellaton
Messages: 289
Registered: July 2009
Senior Member
Hi

Yesterday I observed a similar issue:

To brand our Eclipse distro, I added a configuration plugin that uses
p2 touchpoints to change the -showsplash option:

instructions.configure=\
removeProgramArg(programArg:-showsplash);\
addProgramArg(programArg:-showsplash);\
addProgramArg(programArg:ch.netcetera.eclipse.configuration) ;

This configuration feature is then installed using p2director.

The eclipse.ini files get updated as I expect it, but the option only
works on win32, win32_64 and linux. Unfortunately, it does not work on
linux_64 and osx_64, despite the fact that p2 does not complain about
the touchpoint or any installation issue at all (plugin is present,
eclipse.ini is updated - it just does not show the splash.bmp from the
plugin stated in eclipse.ini).

Michael
Re: -showsplash option does not work [message #544071 is a reply to message #543616] Thu, 01 July 2010 10:07 Go to previous messageGo to next message
Hao Missing name is currently offline Hao Missing name
Messages: 115
Registered: July 2009
Senior Member
Any one knows the solution for the issue?
Re: -showsplash option does not work [message #544853 is a reply to message #543589] Mon, 05 July 2010 13:29 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew Niefer
Messages: 990
Registered: July 2009
Senior Member
Is "com.dfs.framework.bfcc.pcc.sfcc.dd.platform.branding" a jar or folder?

There are two "phases" for showing the splash screen:
1) in the native executable, before starting the jre. This allows for the
splash screen to be shown to the user sooner.
2) From the java Main class.

The native code (1) requires the splash.bmp to be on disk, not inside a jar.
It supports -showplash with a plugin name and will search for that plugin
under the plugins folder and find the splash.bmp if the plugin is a folder
and not a jar. The native code is not able to extract the bmp from a jar.

In the Java code (2), if the native part (1) didn't find the splash screen,
then the java code looks for the "osgi.splashPath" property. The Java code
_does_ support extracting the splash bmp from a jar.

It sounds like your plugin is in jar form and there is no "osgi.splashPath"
entry in your config.ini. I think Product export should automatically set
this property for you if you specify the plugin on the splash tab in
the .product file.

There seems to be room for an enhancement here if you want to raise a bug on
RT > Equinox > Framework. The enhancement would be if you specify
-showsplash with a plugin name that is in jar form, then the java code
would find it without needing the osgi.splashPath property.

-Andrew

Hao wrote:

> We are using eclipse v3.4 and created a branding plugin
> com.dfs.framework.bfcc.pcc.sfcc.dd.platform.branding. Under the root of
> the plugin, we have a bmp file called splash.bmp.
>
> We run eclipse as
> eclipse -showsplash com.dfs.framework.bfcc.pcc.sfcc.dd.platform.branding
>
> eclipse does not show the splash screen using the splash.bmp under the
> root of the plugin.
>
> What's wrong with our command?
>
> thanks!
> hao
Re: -showsplash option does not work [message #545156 is a reply to message #544853] Tue, 06 July 2010 15:33 Go to previous messageGo to next message
Michael Pellaton is currently offline Michael Pellaton
Messages: 289
Registered: July 2009
Senior Member
Hi

In the case I described, the plugin containing the splash.bmp is
installed extracted (as a direcory under plugins). The issue is that it
works on win32, linux32, but doesn't on linux 64 bit and osx 64 bit.

The plugin and eclipse.ini are identical in all cases.

Any ideas about that?

Michael
Re: -showsplash option does not work [message #545405 is a reply to message #545156] Wed, 07 July 2010 12:12 Go to previous message
Andrew Niefer is currently offline Andrew Niefer
Messages: 990
Registered: July 2009
Senior Member
I don't really have any good ideas of why it would work on the 32 bit
machines but not 64, especially if Eclipse launches and is just not showing
the splash screen.

You could check that the splash screen has 24bit color depth, though I
thought that was only an issue on motif:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=318033
https://bugs.eclipse.org/bugs/show_bug.cgi?id=232850

The only other thing would be a variation on these bugs if you have another
bundle with the same prefix and then a _64 or something:
com.dfs.framework.bfcc.pcc.sfcc.dd.platform.branding_64
https://bugs.eclipse.org/bugs/show_bug.cgi?id=264701
https://bugs.eclipse.org/bugs/show_bug.cgi?id=304558

-Andrew
Michael Pellaton wrote:

> Hi
>
> In the case I described, the plugin containing the splash.bmp is
> installed extracted (as a direcory under plugins). The issue is that it
> works on win32, linux32, but doesn't on linux 64 bit and osx 64 bit.
>
> The plugin and eclipse.ini are identical in all cases.
>
> Any ideas about that?
>
> Michael
Previous Topic:How to extract history of eclipse versions (metadata)
Next Topic:Losing events from post selection listener
Goto Forum:
  


Current Time: Thu Aug 21 10:24:47 EDT 2014

Powered by FUDForum. Page generated in 0.01758 seconds