Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Specifying Splashscreen location
Specifying Splashscreen location [message #1121381] Mon, 30 September 2013 15:07 Go to next message
Jakob Reichl is currently offline Jakob ReichlFriend
Messages: 2
Registered: September 2013
Junior Member
We have a JavaFX application using a splash screen at startup. The splash screen does not show, however, we see only the application.

The splash screen was specified as folllows :
In the product definition file we specified the plug-in via the Splash-Tab and put afterwards the file splash.bmp into the corresponding plugin. After the application was started the splash screen did not come up.

I looked at the Contacts demo application from e(fx)clipse. There the Splash screen is specified in plugin org.eclipse.fx.demo.contacts.app and this plugin contains file splash.bmp. However the Splash tab specifies org.eclipse.fx.demo.contacts as the location of the plugin. The splash screen comes up, however. The location may have any value, the splash screen still comes up.

Where is the location of the splash screen defined ?
Re: Specifying Splashscreen location [message #1121596 is a reply to message #1121381] Mon, 30 September 2013 19:54 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
The real problem with the splash screen is that it fails JavaFX on OS-X
hence we create our launch configs with -nosplash.

If you export the product you might also note that we don't generate a
launcher-binary but use javafx-packager for it.

I'm currently uncertain if this guy supports a splash but having a
feature request to not forget about it would be appreciated!

If OS-X is not important to you, you can try to remove the -nosplash
maybe this works.

Tom

On 30.09.13 18:59, Jakob Reichl wrote:
> We have a JavaFX application using a splash screen at startup. The
> splash screen does not show, however, we see only the application.
>
> The splash screen was specified as folllows :
> In the product definition file we specified the plug-in via the
> Splash-Tab and put afterwards the file splash.bmp into the corresponding
> plugin. After the application was started the splash screen did not come
> up.
>
> I looked at the Contacts demo application from e(fx)clipse. There the
> Splash screen is specified in plugin org.eclipse.fx.demo.contacts.app
> and this plugin contains file splash.bmp. However the Splash tab
> specifies org.eclipse.fx.demo.contacts as the location of the plugin.
> The splash screen comes up, however. The location may have any value,
> the splash screen still comes up.
>
> Where is the location of the splash screen defined ?
Re: Specifying Splashscreen location [message #1122058 is a reply to message #1121596] Tue, 01 October 2013 07:31 Go to previous messageGo to next message
Jakob Reichl is currently offline Jakob ReichlFriend
Messages: 2
Registered: September 2013
Junior Member
Thanks for the quick response.

In our application we have no -nosplash option (at least I could not find it).

I also searched for the -nosplash option in the contacts-demo of e(fx)clipse and could not find it. The contacts-demo shows a splash-screen. However, the splash screen does not disappear after the application has started.

Jakob
Re: Specifying Splashscreen location [message #1122081 is a reply to message #1122058] Tue, 01 October 2013 08:02 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

I'm uncertain if I should look into getting the splash working correct
or find a general solution which works on all OSes.

At least file a bug that the splash is not closed. I'm simply missing a
call to inform equinox to close it.

Tom

On 01.10.13 09:31, Jakob Reichl wrote:
> Thanks for the quick response.
>
> In our application we have no -nosplash option (at least I could not
> find it).
>
> I also searched for the -nosplash option in the contacts-demo of
> e(fx)clipse and could not find it. The contacts-demo shows a
> splash-screen. However, the splash screen does not disappear after the
> application has started.
>
> Jakob
Re: Specifying Splashscreen location [message #1122248 is a reply to message #1122081] Tue, 01 October 2013 11:20 Go to previous messageGo to next message
Uwe San is currently offline Uwe SanFriend
Messages: 119
Registered: January 2012
Senior Member
The Bugzilla entry is here.

What is still unclear to me: what consequences does the specification of the plug-in location in the product have? It seems to be unrelated to the location of the splash.bmp, as Jakob wrote. The splash.bmp needs to be located right next to the Application.e4xmi, otherwise there's no splash screen during start-up.

I remember the splash screen worked in an previous product we defined that was based on an older codebase of e(fx)clipse. Has anything about the splash screen mechanism changed recently?

Thanks,
Uwe
Re: Specifying Splashscreen location [message #1122271 is a reply to message #1122248] Tue, 01 October 2013 11:41 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
I frankly have no idea beside and we never dealt with the splash
ourselves so maybe it has something to do with the platform update?

IIRC in SWT there are in fact 2 splashes:
a) the one shown by the native launcher
b) the one presented later on by an SWT-Shell once SWT is brought up

What we'd really need is
http://docs.oracle.com/javafx/2/deployment/javafx_ant_task_reference.htm#CACDIDFE
which is currently only supported for webstart!

Tom

On 01.10.13 13:20, Uwe San wrote:
> The Bugzilla entry is https://bugs.eclipse.org/bugs/show_bug.cgi?id=418399.
>
> What is still unclear to me: what consequences does the specification of
> the plug-in location in the product have? It seems to be unrelated to
> the location of the splash.bmp, as Jakob wrote. The splash.bmp needs to
> be located right next to the Application.e4xmi, otherwise there's no
> splash screen during start-up.
> I remember the splash screen worked in an previous product we defined
> that was based on an older codebase of e(fx)clipse. Has anything about
> the splash screen mechanism changed recently?
>
> Thanks,
> Uwe
Re: Specifying Splashscreen location [message #1130087 is a reply to message #1122271] Wed, 09 October 2013 08:14 Go to previous messageGo to next message
Uwe San is currently offline Uwe SanFriend
Messages: 119
Registered: January 2012
Senior Member
After some debugging in the native launcher code, we now know why the splash screen did not work in our application but in the contacts demo. Our launch configuration was missing the bundle org.eclipse.equinox.launcher. This is needed to make the splash screen (shown by the native launcher) work. It does not need to be selected, it just needs to be in there (weirdly enough).

Another thing to note is that for the native launcher to show the splash screen, the path to the BMP file must be shorter than 256 characters (on Windows 7). I find this limitation remarkable in a modern OS.
Re: Specifying Splashscreen location [message #1130104 is a reply to message #1130087] Wed, 09 October 2013 08:26 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
IIRC I forgot to add equinox.launcher to feature.xml in former tooling
versions, this has been fixed since some time already, so it should
hopefully not happen anymore for people who bootstrap applications now.

Tom

On 09.10.13 10:14, Uwe San wrote:
> After some debugging in the native launcher code, we now know why the
> splash screen did not work in our application but in the contacts demo.
> Our launch configuration was missing the bundle
> org.eclipse.equinox.launcher. This is needed to make the splash screen
> (shown by the native launcher) work. It does not need to be selected, it
> just needs to be in there (weirdly enough).
>
> Another thing to note is that for the native launcher to show the splash
> screen, the path to the BMP file must be shorter than 256 characters (on
> Windows 7). I find this limitation remarkable in a modern OS.
Re: Specifying Splashscreen location [message #1158881 is a reply to message #1121381] Mon, 28 October 2013 06:41 Go to previous messageGo to next message
Pawel Zalejko is currently offline Pawel ZalejkoFriend
Messages: 15
Registered: October 2013
Junior Member
Hi Tom,

I just ran into the same problem. Splash screen does not disappear after the application has started. It seams that there is something wrong with the configuration (org.eclipse.fx.ui.workbench.fx.application ?).

I compared e4 applications (SWT-based against JavaFX-based) and the JavaFX E4 application does not work (I mean, hiding the splash screen). How I did it:

1. I created an E4-SWT application (New > Eclipse 4 > Eclipse 4 Application Project).
2. I created an E4-JavaFX application (New > JavaFX > OSGI > e4 Application projects).

In both applications I added a TrimmedWindow (only it) within Application.e4xmi.

The most significant differences between JavaFX and SWT apps are:
- Application type (within the *.product configurations): "org.eclipse.fx.ui.workbench.fx.application", "org.eclipse.e4.ui.workbench.swt.E4Application".
- dependencies.

Additionally, I checked the contacts-demo application and it also does not close the splash screen.

I also took a look at your fix provided under the https://bugs.eclipse.org/bugs/show_bug.cgi?id=418399 . From the "code point of view" it is correct. Under the hood, it invokes the org.eclipse.equinox.launcher.Main#takeDownSplash method. Unfortunately, it does not close the splash screen.


I did my tests using:
- Eclipse RCP (Kepler Service Release 1)
- e(fx)clipse 0.9.0.201310250602
- windows 7
Re: Specifying Splashscreen location [message #1158958 is a reply to message #1158881] Mon, 28 October 2013 07:50 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
If it does not work for you, then please reopen the bug report. Uwe can
you confirm that this doesn't work for you either?

Tom

On 28.10.13 07:41, Pawel Zalejko wrote:
> Hi Tom,
>
> I just ran into the same problem. Splash screen does not disappear after
> the application has started. It seams that there is something wrong with
> the configuration (org.eclipse.fx.ui.workbench.fx.application ?).
>
> I compared e4 applications (SWT-based against JavaFX-based) and the
> JavaFX E4 application does not work (I mean, hiding the splash screen).
> How I did it:
>
> 1. I created an E4-SWT application (New > Eclipse 4 > Eclipse 4
> Application Project).
> 2. I created an E4-JavaFX application (New > JavaFX > OSGI > e4
> Application projects).
>
> In both applications I added a TrimmedWindow (only it) within
> Application.e4xmi.
>
> The most significant differences between JavaFX and SWT apps are: -
> Application type (within the *.product configurations):
> "org.eclipse.fx.ui.workbench.fx.application",
> "org.eclipse.e4.ui.workbench.swt.E4Application".
> - dependencies.
>
> Additionally, I checked the contacts-demo application and it also does
> not close the splash screen.
>
> I also took a look at your fix provided under the
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=418399 . From the "code
> point of view" it is correct. Under the hood, it invokes the
> org.eclipse.equinox.launcher.Main#takeDownSplash method. Unfortunately,
> it does not close the splash screen.
>
> I did my tests using:
> - Eclipse RCP (Kepler Service Release 1)
> - e(fx)clipse 0.9.0.201310250602
> - windows 7
Re: Specifying Splashscreen location [message #1159022 is a reply to message #1158958] Mon, 28 October 2013 08:41 Go to previous messageGo to next message
Uwe San is currently offline Uwe SanFriend
Messages: 119
Registered: January 2012
Senior Member
Thomas Schindl wrote on Mon, 28 October 2013 03:50
Uwe, can
you confirm that this doesn't work for you either?


Confirmed. The splash screen does not disappear after launching the contacts demo app from Eclipse on Windows 7. I pulled the latest sources (tooling/runtime).

Uwe
Re: Specifying Splashscreen location [message #1159054 is a reply to message #1159022] Mon, 28 October 2013 09:06 Go to previous messageGo to next message
Pawel Zalejko is currently offline Pawel ZalejkoFriend
Messages: 15
Registered: October 2013
Junior Member
@Uwe: Thanks for confirming the problem.
@Tom: Unfortunately I cannot reopen the bug. It looks that I do not have permissions to do that Smile

Pawel
Re: Specifying Splashscreen location [message #1744844 is a reply to message #1159054] Fri, 30 September 2016 17:13 Go to previous messageGo to next message
Robert Onslow is currently offline Robert OnslowFriend
Messages: 27
Registered: March 2016
Junior Member
Tom
Was there any progress on this issue?

Robert
Re: Specifying Splashscreen location [message #1744863 is a reply to message #1744844] Fri, 30 September 2016 20:57 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Well to some extend yes - in the nightlies there are some improvements on splash handling if you use the eclipse launcher but the situation is still not satisfying!
Re: Specifying Splashscreen location [message #1807861 is a reply to message #1744863] Tue, 11 June 2019 07:56 Go to previous messageGo to next message
Zhendong Li is currently offline Zhendong LiFriend
Messages: 10
Registered: October 2018
Junior Member
Is there any new development in this issue? It still appears on the 3.5.x version
Re: Specifying Splashscreen location [message #1807863 is a reply to message #1807861] Tue, 11 June 2019 08:01 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
you mean that it does not disappear - yes this should work now
Re: Specifying Splashscreen location [message #1807873 is a reply to message #1807863] Tue, 11 June 2019 09:04 Go to previous message
Zhendong Li is currently offline Zhendong LiFriend
Messages: 10
Registered: October 2018
Junior Member
Yes, as you understand, but I still have this problem on the target platform of 3.5.0, Windows 10, jdk 1.8.
Did I miss something?

Sorry, I temporarily borrowed your splash.bmp in the contact demo project.
Previous Topic:Product based on efxclipse 3.5 can not be build in Tycho with Maven 3.6.1
Next Topic:Splash cannot disappear when the application is launched
Goto Forum:
  


Current Time: Tue Mar 19 11:42:04 GMT 2024

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

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

Back to the top