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: 5470
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: 5470
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: 102
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: 5470
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: 102
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: 5470
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: 14
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: 5470
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: 102
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 message
Pawel Zalejko is currently offline Pawel ZalejkoFriend
Messages: 14
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
Previous Topic:Grails app not running in debug mode in Eclipse Kepler
Next Topic:Splash screen support
Goto Forum:
  


Current Time: Sat Nov 29 10:18:28 GMT 2014

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

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