Specifying Splashscreen location [message #1121381] |
Mon, 30 September 2013 15:07  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
Thomas Schindl wrote on Mon, 28 October 2013 03:50Uwe, 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
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04155 seconds