Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Splash screen
icon9.gif  Splash screen [message #1701364] Mon, 13 July 2015 02:26 Go to next message
Jeyhun MAMEDOV is currently offline Jeyhun MAMEDOVFriend
Messages: 21
Registered: March 2014
Junior Member
Hi

I know that there are problems according on this topic, but I could not hold myself:

Is there any progress on that field? Really bad not have splash screen Sad

I added splash.bmp to my application bundle and removed -nosplash. Splash appeared for 2 second and then throw error (Ubuntu 14.10 JDK1.8 Unity):

(java:8714): GLib-GObject-WARNING **: cannot register existing type 'GdkDisplayManager'
(java:8714): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
(java:8714): GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
(java:8714): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(java:8714): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(java:8714): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(java:8714): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f8b82563e1f, pid=8714, tid=140237546456832
#
# JRE version: Java(TM) SE Runtime Environment (8.0_45-b14) (build 1.8.0_45-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.45-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libgdk-x11-2.0.so.0+0x4ce1f] gdk_display_open+0x3f
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/tjeey/nakkash/working_dir/hs_err_pid8714.log
(java:8714): GLib-GObject-WARNING **: cannot register existing type 'GdkDisplay'
(java:8714): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
(java:8714): GLib-GObject-CRITICAL **: g_type_register_static: assertion 'parent_type > 0' failed
(java:8714): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
(java:8714): GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed


Is that means that splash screen works but there is some bug in linux or what?

[Updated on: Mon, 13 July 2015 02:41]

Report message to a moderator

Re: Splash screen [message #1701384 is a reply to message #1701364] Mon, 13 July 2015 07:53 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6505
Registered: July 2009
Senior Member
Unfortunately no - Oracle seems to think a java application does not
need a splashscreen and I don't see them adding one to java-packager.

On windows you can make use of the eclipse splash-screen (maybe also on
gtk). In 2.0 (and 1.3 for customers with support contracts) we added a
special service giving you very early access to the framework launch so
that you can display a custom splash as early as possible (before the e4
lifecycle!).

I fully understand that this is not satisfying but we don't have the
resources to implement a custom launcher. So unless someone is paying us
to implement it or contribute it we are stuck. A first progress would be
if somebody could research
https://bugs.eclipse.org/bugs/show_bug.cgi?id=427258 how this could be
fixed.

Tom

On 13.07.15 04:26, Jeyhun MAMEDOV wrote:
> Hi
>
> I know that there are problems according on this topic, but I could not
> hold myself:
>
> Is there any progress on that field? Really bad not have splash screen :(
Re: Splash screen [message #1712652 is a reply to message #1701384] Tue, 27 October 2015 08:41 Go to previous messageGo to next message
Milankumar Ardeshana is currently offline Milankumar ArdeshanaFriend
Messages: 27
Registered: August 2015
Junior Member
Hi,
I am exploring equinox hook with e(fx)xlipse for splash only.
I am working on Win environment. And i don't have any plan to move to Mac or Linux.

1) Is there any example on the equinox hook for Splash on pure e(fx)clipse?

2) One more thing i would like to know is how to configure target definition to work on SWT and e(fx)clipse both at time?

3) Can i use this(Attachment 227432) example by Lars to Hook the Splash Service? Again I am blocked cause of 2nd point that my target definition is not allowing org.eclipse.core , SWT and jface etc. and How can i hook it in Osgi?

-
Milan
Re: Splash screen [message #1712679 is a reply to message #1712652] Tue, 27 October 2015 13:00 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2710
Registered: July 2012
Senior Member
For the second point this might be helpful: https://blog.codecentric.de/en/2015/04/add-javafx-controls-swt-eclipse-4-application-eclipse-rcp-cookbook/

But as it seems you want to "enrich" your JavaFX UI with a SWT SplashScreen, you should rethink what you are trying to achieve. IIRC you can add JavaFX content to a SWT UI via the FXCanvas control. I am not aware of something similar in JavaFX to get SWT controls in.

The linked solution is an OSGi declarative service. I assume you would need to implement something similar using JavaFX instead of SWT.
Re: Splash screen [message #1712780 is a reply to message #1712679] Wed, 28 October 2015 08:45 Go to previous messageGo to next message
Milankumar Ardeshana is currently offline Milankumar ArdeshanaFriend
Messages: 27
Registered: August 2015
Junior Member
Dirk Fauth wrote on Tue, 27 October 2015 13:00

But as it seems you want to "enrich" your JavaFX UI with a SWT SplashScreen, you should rethink what you are trying to achieve. IIRC you can add JavaFX content to a SWT UI via the FXCanvas control. I am not aware of something similar in JavaFX to get SWT controls in.

The linked solution is an OSGi declarative service. I assume you would need to implement something similar using JavaFX instead of SWT.


My Intention is to have pure e(fx)clipse application only. For my application splash screen is mandatory, that's why i am planning to hook SWT splash.
-
Milan
Re: Splash screen [message #1712783 is a reply to message #1712780] Wed, 28 October 2015 08:52 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2710
Registered: July 2012
Senior Member
Quote:
My Intention is to have pure e(fx)clipse application only. For my application splash screen is mandatory, that's why i am planning to hook SWT splash.


That doesn't make much sense. I would suggest to migrate the approach you found to JavaFX instead of bringing SWT into a JavaFX application.
Re: Splash screen [message #1712788 is a reply to message #1712783] Wed, 28 October 2015 09:21 Go to previous messageGo to next message
Milankumar Ardeshana is currently offline Milankumar ArdeshanaFriend
Messages: 27
Registered: August 2015
Junior Member
Thanks Dirk for reply. What exactly i am looking for is as below (in quote).

Thomas Schindl wrote on Oct 13 at 12:23 at Stackoverflow
if you are on windows/linux you can still use the equinox hook with the only caveat that we bring this one done very early because we can not bring it down on the JavaFX thread


-
Milan
Re: Splash screen [message #1712829 is a reply to message #1712788] Wed, 28 October 2015 15:15 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6505
Registered: July 2009
Senior Member
But that is not the swt splash screen! All you need is the native
launcher artifact. The nightly build already has it in it.

Tom

On 28.10.15 02:21, Milankumar Ardeshana wrote:
> Thanks Dirk for reply. What exactly i am looking for is as below (in
> quote).
>
> Thomas Schindl wrote on Oct 13 at 12:23 at Stackoverflow
>> if you are on windows/linux you can still use the equinox hook with
>> the only caveat that we bring this one done very early because we can
>> not bring it down on the JavaFX thread
>
>
> -
> Milan
Re: Splash screen [message #1712922 is a reply to message #1712829] Thu, 29 October 2015 11:40 Go to previous messageGo to next message
Milankumar Ardeshana is currently offline Milankumar ArdeshanaFriend
Messages: 27
Registered: August 2015
Junior Member
Hi Tom,

I downloaded nightly build from downloads.efxclipse.bestsolution.at/downloads/nightly/sdk/ and facing some issues in setup.
My default target definition is showing
index.php/fa/23780/0/

I am getting access restriction error for JAVA fx as
index.php/fa/23781/0/

And in new project am not able to see the JAVAFx Projects.
My OSGI console output is as below

WARNING: This console is connected to the current running instance of Eclipse!
osgi> ss org.eclipse.fx
"Framework is launched."


id	State       Bundle
2	RESOLVED    org.eclipse.fx.osgi_2.1.0.201509090501
	            Master=0
237	STARTING    org.eclipse.fx.code.editor.ldef_2.1.0.201509090602
238	STARTING    org.eclipse.fx.code.editor.ldef.ui_2.1.0.201509090707
239	INSTALLED   org.eclipse.fx.core_2.1.0.201509090602
240	INSTALLED   org.eclipse.fx.core.guice_2.1.0.201509090602
241	STARTING    org.eclipse.fx.formats.svg_2.1.0.201509090602
242	INSTALLED   org.eclipse.fx.ide.converter_2.1.0.201509090707
243	STARTING    org.eclipse.fx.ide.css_2.1.0.201509090707
244	INSTALLED   org.eclipse.fx.ide.css.cssext_2.1.0.201509090707
245	INSTALLED   org.eclipse.fx.ide.css.cssext.proposals_2.1.0.201509090707
246	INSTALLED   org.eclipse.fx.ide.css.cssext.ui_2.1.0.201509090707
247	STARTING    org.eclipse.fx.ide.css.jfx2_2.1.0.201509090707
248	STARTING    org.eclipse.fx.ide.css.jfx8_2.1.0.201509090707
249	INSTALLED   org.eclipse.fx.ide.css.ui_2.1.0.201509090707
250	STARTING    org.eclipse.fx.ide.fxgraph_2.1.0.201509090707
251	STARTING    org.eclipse.fx.ide.fxgraph.ui_2.1.0.201509090707
252	ACTIVE      org.eclipse.fx.ide.fxml_2.1.0.201509090707
253	RESOLVED    org.eclipse.fx.ide.fxml.compiler_2.1.0.201509090707
254	ACTIVE      org.eclipse.fx.ide.java6_2.1.0.201509090707
255	INSTALLED   org.eclipse.fx.ide.jdt.core_2.1.0.201509090707
256	INSTALLED   org.eclipse.fx.ide.jdt.ui_2.1.0.201509090707
257	STARTING    org.eclipse.fx.ide.l10n_2.1.0.201509090707
258	STARTING    org.eclipse.fx.ide.l10n.ui_2.1.0.201509090707
259	ACTIVE      org.eclipse.fx.ide.model_2.1.0.201509090707
260	INSTALLED   org.eclipse.fx.ide.pde.core_2.1.0.201509090707
261	INSTALLED   org.eclipse.fx.ide.pde.ui_2.1.0.201509090707
262	INSTALLED   org.eclipse.fx.ide.pde.ui.e4_2.1.0.201509090707
263	STARTING    org.eclipse.fx.ide.rrobot_2.1.0.201509090707
264	STARTING    org.eclipse.fx.ide.rrobot.dsl_2.1.0.201509090707
265	STARTING    org.eclipse.fx.ide.rrobot.dsl.ui_2.1.0.201509090707
266	STARTING    org.eclipse.fx.ide.rrobot.model_2.1.0.201509090707
267	STARTING    org.eclipse.fx.ide.ui_2.1.0.201509090707
268	RESOLVED    org.eclipse.fx.ide.ui.mobile.sim.device_2.1.0.201509090707
269	INSTALLED   org.eclipse.fx.ide.ui.mobile.sim.launch_2.1.0.201509090707
270	STARTING    org.eclipse.fx.ide.ui.preview_2.1.0.201509090707
271	STARTING    org.eclipse.fx.javafx_2.2.0.201509090501
272	INSTALLED   org.eclipse.fx.osgi.util_2.1.0.201509090602
273	RESOLVED    org.eclipse.fx.ui.animation_2.1.0.201509090602
274	INSTALLED   org.eclipse.fx.ui.controls_2.1.0.201509090602
275	RESOLVED    org.eclipse.fx.ui.mobile_2.1.0.201509090602
276	RESOLVED    org.eclipse.fx.ui.panes_2.1.0.201509090602
277	RESOLVED    org.eclipse.fx.ui.workbench3_2.1.0.201509090501


I don't know what i am missing. Please can you help me here in situation?

Thanks,
Milan
  • Attachment: Target.PNG
    (Size: 9.12KB, Downloaded 964 times)
  • Attachment: error.png
    (Size: 11.42KB, Downloaded 990 times)

[Updated on: Thu, 29 October 2015 11:42]

Report message to a moderator

Re: Splash screen [message #1712937 is a reply to message #1712922] Thu, 29 October 2015 13:17 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6505
Registered: July 2009
Senior Member
It looks like the org.eclipse.fx bundles could not be started - try:

diag 260

or some of the other bundles who only got into the INSTALLED state to
see what's going on.

Tom

On 29.10.15 04:40, Milankumar Ardeshana wrote:
> Hi Tom,
>
> I downloaded nightly build from downloads.efxclipse.bestsolution.at/downloads/nightly/sdk/ and facing some issues in setup.
> My default target definition is showing
>
> I am getting access restriction error for JAVA fx as
>
> And in new project am not able to see the JAVAFx Projects.
> My OSGI console output is as below
>
>
> WARNING: This console is connected to the current running instance of Eclipse!
> osgi> ss org.eclipse.fx
> "Framework is launched."
>
>
> id State Bundle
> 2 RESOLVED org.eclipse.fx.osgi_2.1.0.201509090501
> Master=0
> 237 STARTING org.eclipse.fx.code.editor.ldef_2.1.0.201509090602
> 238 STARTING org.eclipse.fx.code.editor.ldef.ui_2.1.0.201509090707
> 239 INSTALLED org.eclipse.fx.core_2.1.0.201509090602
> 240 INSTALLED org.eclipse.fx.core.guice_2.1.0.201509090602
> 241 STARTING org.eclipse.fx.formats.svg_2.1.0.201509090602
> 242 INSTALLED org.eclipse.fx.ide.converter_2.1.0.201509090707
> 243 STARTING org.eclipse.fx.ide.css_2.1.0.201509090707
> 244 INSTALLED org.eclipse.fx.ide.css.cssext_2.1.0.201509090707
> 245 INSTALLED org.eclipse.fx.ide.css.cssext.proposals_2.1.0.201509090707
> 246 INSTALLED org.eclipse.fx.ide.css.cssext.ui_2.1.0.201509090707
> 247 STARTING org.eclipse.fx.ide.css.jfx2_2.1.0.201509090707
> 248 STARTING org.eclipse.fx.ide.css.jfx8_2.1.0.201509090707
> 249 INSTALLED org.eclipse.fx.ide.css.ui_2.1.0.201509090707
> 250 STARTING org.eclipse.fx.ide.fxgraph_2.1.0.201509090707
> 251 STARTING org.eclipse.fx.ide.fxgraph.ui_2.1.0.201509090707
> 252 ACTIVE org.eclipse.fx.ide.fxml_2.1.0.201509090707
> 253 RESOLVED org.eclipse.fx.ide.fxml.compiler_2.1.0.201509090707
> 254 ACTIVE org.eclipse.fx.ide.java6_2.1.0.201509090707
> 255 INSTALLED org.eclipse.fx.ide.jdt.core_2.1.0.201509090707
> 256 INSTALLED org.eclipse.fx.ide.jdt.ui_2.1.0.201509090707
> 257 STARTING org.eclipse.fx.ide.l10n_2.1.0.201509090707
> 258 STARTING org.eclipse.fx.ide.l10n.ui_2.1.0.201509090707
> 259 ACTIVE org.eclipse.fx.ide.model_2.1.0.201509090707
> 260 INSTALLED org.eclipse.fx.ide.pde.core_2.1.0.201509090707
> 261 INSTALLED org.eclipse.fx.ide.pde.ui_2.1.0.201509090707
> 262 INSTALLED org.eclipse.fx.ide.pde.ui.e4_2.1.0.201509090707
> 263 STARTING org.eclipse.fx.ide.rrobot_2.1.0.201509090707
> 264 STARTING org.eclipse.fx.ide.rrobot.dsl_2.1.0.201509090707
> 265 STARTING org.eclipse.fx.ide.rrobot.dsl.ui_2.1.0.201509090707
> 266 STARTING org.eclipse.fx.ide.rrobot.model_2.1.0.201509090707
> 267 STARTING org.eclipse.fx.ide.ui_2.1.0.201509090707
> 268 RESOLVED org.eclipse.fx.ide.ui.mobile.sim.device_2.1.0.201509090707
> 269 INSTALLED org.eclipse.fx.ide.ui.mobile.sim.launch_2.1.0.201509090707
> 270 STARTING org.eclipse.fx.ide.ui.preview_2.1.0.201509090707
> 271 STARTING org.eclipse.fx.javafx_2.2.0.201509090501
> 272 INSTALLED org.eclipse.fx.osgi.util_2.1.0.201509090602
> 273 RESOLVED org.eclipse.fx.ui.animation_2.1.0.201509090602
> 274 INSTALLED org.eclipse.fx.ui.controls_2.1.0.201509090602
> 275 RESOLVED org.eclipse.fx.ui.mobile_2.1.0.201509090602
> 276 RESOLVED org.eclipse.fx.ui.panes_2.1.0.201509090602
> 277 RESOLVED org.eclipse.fx.ui.workbench3_2.1.0.201509090501
>
>
>
Re: Splash screen [message #1712938 is a reply to message #1712922] Thu, 29 October 2015 13:18 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6505
Registered: July 2009
Senior Member
.... and BTW I did not talk about updateing the IDE but only the target
platform.

Tom


On 29.10.15 04:40, Milankumar Ardeshana wrote:
> Hi Tom,
>
> I downloaded nightly build from downloads.efxclipse.bestsolution.at/downloads/nightly/sdk/ and facing some issues in setup.
> My default target definition is showing
>
> I am getting access restriction error for JAVA fx as
>
> And in new project am not able to see the JAVAFx Projects.
> My OSGI console output is as below
>
>
> WARNING: This console is connected to the current running instance of Eclipse!
> osgi> ss org.eclipse.fx
> "Framework is launched."
>
>
> id State Bundle
> 2 RESOLVED org.eclipse.fx.osgi_2.1.0.201509090501
> Master=0
> 237 STARTING org.eclipse.fx.code.editor.ldef_2.1.0.201509090602
> 238 STARTING org.eclipse.fx.code.editor.ldef.ui_2.1.0.201509090707
> 239 INSTALLED org.eclipse.fx.core_2.1.0.201509090602
> 240 INSTALLED org.eclipse.fx.core.guice_2.1.0.201509090602
> 241 STARTING org.eclipse.fx.formats.svg_2.1.0.201509090602
> 242 INSTALLED org.eclipse.fx.ide.converter_2.1.0.201509090707
> 243 STARTING org.eclipse.fx.ide.css_2.1.0.201509090707
> 244 INSTALLED org.eclipse.fx.ide.css.cssext_2.1.0.201509090707
> 245 INSTALLED org.eclipse.fx.ide.css.cssext.proposals_2.1.0.201509090707
> 246 INSTALLED org.eclipse.fx.ide.css.cssext.ui_2.1.0.201509090707
> 247 STARTING org.eclipse.fx.ide.css.jfx2_2.1.0.201509090707
> 248 STARTING org.eclipse.fx.ide.css.jfx8_2.1.0.201509090707
> 249 INSTALLED org.eclipse.fx.ide.css.ui_2.1.0.201509090707
> 250 STARTING org.eclipse.fx.ide.fxgraph_2.1.0.201509090707
> 251 STARTING org.eclipse.fx.ide.fxgraph.ui_2.1.0.201509090707
> 252 ACTIVE org.eclipse.fx.ide.fxml_2.1.0.201509090707
> 253 RESOLVED org.eclipse.fx.ide.fxml.compiler_2.1.0.201509090707
> 254 ACTIVE org.eclipse.fx.ide.java6_2.1.0.201509090707
> 255 INSTALLED org.eclipse.fx.ide.jdt.core_2.1.0.201509090707
> 256 INSTALLED org.eclipse.fx.ide.jdt.ui_2.1.0.201509090707
> 257 STARTING org.eclipse.fx.ide.l10n_2.1.0.201509090707
> 258 STARTING org.eclipse.fx.ide.l10n.ui_2.1.0.201509090707
> 259 ACTIVE org.eclipse.fx.ide.model_2.1.0.201509090707
> 260 INSTALLED org.eclipse.fx.ide.pde.core_2.1.0.201509090707
> 261 INSTALLED org.eclipse.fx.ide.pde.ui_2.1.0.201509090707
> 262 INSTALLED org.eclipse.fx.ide.pde.ui.e4_2.1.0.201509090707
> 263 STARTING org.eclipse.fx.ide.rrobot_2.1.0.201509090707
> 264 STARTING org.eclipse.fx.ide.rrobot.dsl_2.1.0.201509090707
> 265 STARTING org.eclipse.fx.ide.rrobot.dsl.ui_2.1.0.201509090707
> 266 STARTING org.eclipse.fx.ide.rrobot.model_2.1.0.201509090707
> 267 STARTING org.eclipse.fx.ide.ui_2.1.0.201509090707
> 268 RESOLVED org.eclipse.fx.ide.ui.mobile.sim.device_2.1.0.201509090707
> 269 INSTALLED org.eclipse.fx.ide.ui.mobile.sim.launch_2.1.0.201509090707
> 270 STARTING org.eclipse.fx.ide.ui.preview_2.1.0.201509090707
> 271 STARTING org.eclipse.fx.javafx_2.2.0.201509090501
> 272 INSTALLED org.eclipse.fx.osgi.util_2.1.0.201509090602
> 273 RESOLVED org.eclipse.fx.ui.animation_2.1.0.201509090602
> 274 INSTALLED org.eclipse.fx.ui.controls_2.1.0.201509090602
> 275 RESOLVED org.eclipse.fx.ui.mobile_2.1.0.201509090602
> 276 RESOLVED org.eclipse.fx.ui.panes_2.1.0.201509090602
> 277 RESOLVED org.eclipse.fx.ui.workbench3_2.1.0.201509090501
>
>
>
icon14.gif  Re: Splash screen [message #1713034 is a reply to message #1712938] Fri, 30 October 2015 05:49 Go to previous messageGo to next message
Milankumar Ardeshana is currently offline Milankumar ArdeshanaFriend
Messages: 27
Registered: August 2015
Junior Member
Ohh Sorry. My bad.
I changed my target definition in my previous setup to : http://download.eclipse.org/efxclipse/runtime-nightly/site
But it was not working as in my launch file org.eclipse.jdt.launching.PROGRAM_ARGUMENTS there was -nosplash.
I removed that and it worked perfectly as expected.
Hope we can have progress bar soon. Smile

Thanks,
Milan

[Updated on: Fri, 30 October 2015 05:58]

Report message to a moderator

Re: Splash screen [message #1713283 is a reply to message #1713034] Tue, 03 November 2015 05:04 Go to previous messageGo to next message
Milankumar Ardeshana is currently offline Milankumar ArdeshanaFriend
Messages: 27
Registered: August 2015
Junior Member
Hi Tom,

My Splash is visible behind the application.
Is there any solution for this?
index.php/fa/23808/0/




Thanks,
Milan
Re: Splash screen [message #1722915 is a reply to message #1701384] Wed, 10 February 2016 09:57 Go to previous messageGo to next message
Bastien Bart is currently offline Bastien BartFriend
Messages: 21
Registered: May 2014
Junior Member
Thomas Schindl wrote on Mon, 13 July 2015 03:53
In 2.0 (and 1.3 for customers with support contracts) we added a
special service giving you very early access to the framework launch so
that you can display a custom splash as early as possible (before the e4
lifecycle!).


Hi Tom,

can u explain how display a custom splash before the e4 lifecycle? I can't find the service...

Thx,
Bastien
Re: Splash screen [message #1722922 is a reply to message #1722915] Wed, 10 February 2016 10:20 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6505
Registered: July 2009
Senior Member
Hi,

Look for StartupProgressTrackerService#stateReached which is the
earliest stage when FX has been initialized.

Tom

On 10.02.16 10:57, Bastien Bart wrote:
> Thomas Schindl wrote on Mon, 13 July 2015 03:53
>> In 2.0 (and 1.3 for customers with support contracts) we added a
>> special service giving you very early access to the framework launch so
>> that you can display a custom splash as early as possible (before the e4
>> lifecycle!).
>
>
> Hi Tom,
>
> can u explain how display a custom splash before the e4 lifecycle? I
> can't find the service...
>
> Thx,
> Bastien
Re: Splash screen [message #1722943 is a reply to message #1722922] Wed, 10 February 2016 12:18 Go to previous messageGo to next message
Bastien Bart is currently offline Bastien BartFriend
Messages: 21
Registered: May 2014
Junior Member
Nice job. Works perfect.
Thx a lot

Thomas Schindl wrote on Wed, 10 February 2016 05:20
Hi,

Look for StartupProgressTrackerService#stateReached which is the
earliest stage when FX has been initialized.

Tom

On 10.02.16 10:57, Bastien Bart wrote:
> Thomas Schindl wrote on Mon, 13 July 2015 03:53
>> In 2.0 (and 1.3 for customers with support contracts) we added a
>> special service giving you very early access to the framework launch so
>> that you can display a custom splash as early as possible (before the e4
>> lifecycle!).
>
>
> Hi Tom,
>
> can u explain how display a custom splash before the e4 lifecycle? I
> can't find the service...
>
> Thx,
> Bastien

Re: Splash screen [message #1723062 is a reply to message #1722943] Thu, 11 February 2016 10:54 Go to previous messageGo to next message
Milankumar Ardeshana is currently offline Milankumar ArdeshanaFriend
Messages: 27
Registered: August 2015
Junior Member
Hi Bastien / Tom,

I am very curious to use splash. I am trying to use the service StartupProgressTrackerService. But my debug point is not hitting to any of the Sysouts in below code. Here is what i am doing. please correct me. I am really new to osgi service and its usage.

1) create new-->Plugindevelopment--> Component Defintion. Splash.xml
<?xml version="1.0" encoding="UTF-8"?>
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" configuration-policy="require" immediate="true" name="media.app">
   <implementation class="media.app.splash.Splash"/>
   <reference cardinality="1..1" interface="org.eclipse.fx.ui.services.startup.StartupProgressTrackerService" name="StartupProgressTrackerService" policy="static"/>
</scr:component>


2)Created class Splash as below
import org.eclipse.equinox.app.IApplicationContext;
import org.eclipse.fx.ui.services.startup.StartupProgressTrackerService;

public class Splash implements StartupProgressTrackerService {

	public Splash() {
	}

	@Override
	public OSGiRV osgiApplicationLaunched(IApplicationContext applicationContext) {
		System.out.println();
		
		return null;
	}

	@Override
	public void stateReached(ProgressState state) {
		
		System.out.println();
	}

}



And in logs i am getting four times

!ENTRY media.app 4 0 2016-02-11 16:21:49.345
!MESSAGE [SCR] Component definition XMLs not found in bundle media.app. The component header value is splash.xml



Thanks,
Milan

  • Attachment: 1.PNG
    (Size: 44.99KB, Downloaded 113 times)
Re: Splash screen [message #1723068 is a reply to message #1723062] Thu, 11 February 2016 11:07 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6505
Registered: July 2009
Senior Member
You are defining a reference which is wrong! You are publishing
StartupProgressTrackerService so you need to use
StartupProgressTrackerService in the provided-service section.

Tom

On 11.02.16 11:54, Milankumar Ardeshana wrote:
> Hi Bastien / Tom,
>
> I am very curious to use splash. I am trying to use the service StartupProgressTrackerService. But my debug point is not hitting to any of the Sysouts in below code. Here is what i am doing. please correct me. I am really new to osgi service and its usage.
>
> 1) create new-->Plugindevelopment--> Component Defintion. Splash.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" configuration-policy="require" immediate="true" name="media.app">
> <implementation class="media.app.splash.Splash"/>
> <reference cardinality="1..1" interface="org.eclipse.fx.ui.services.startup.StartupProgressTrackerService" name="StartupProgressTrackerService" policy="static"/>
> </scr:component>
>
>
> 2)Created class Splash as below
> import org.eclipse.equinox.app.IApplicationContext;
> import org.eclipse.fx.ui.services.startup.StartupProgressTrackerService;
>
> public class Splash implements StartupProgressTrackerService {
>
> public Splash() {
> }
>
> @Override
> public OSGiRV osgiApplicationLaunched(IApplicationContext applicationContext) {
> System.out.println();
>
> return null;
> }
>
> @Override
> public void stateReached(ProgressState state) {
>
> System.out.println();
> }
>
> }
>
>
>
> And in logs i am getting four times
>
> !ENTRY media.app 4 0 2016-02-11 16:21:49.345
> !MESSAGE [SCR] Component definition XMLs not found in bundle media.app. The component header value is splash.xml
>
>
>
> Thanks,
> Milan
>
>
Re: Splash screen [message #1723071 is a reply to message #1723068] Thu, 11 February 2016 11:24 Go to previous messageGo to next message
Milankumar Ardeshana is currently offline Milankumar ArdeshanaFriend
Messages: 27
Registered: August 2015
Junior Member
Thanks for quick reply.
Now i have corrected it as below.
<?xml version="1.0" encoding="UTF-8"?>
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" configuration-policy="require" immediate="true" name="media.app">
   <implementation class="media.app.splash.Splash"/>
   <service>
      <provide interface="org.eclipse.fx.ui.services.startup.StartupProgressTrackerService"/>
   </service>
</scr:component>


still same logs.
  • Attachment: logs.txt
    (Size: 2.21KB, Downloaded 98 times)
Re: Splash screen [message #1723073 is a reply to message #1723071] Thu, 11 February 2016 11:32 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6505
Registered: July 2009
Senior Member
So the system can not find the splash.xml is this really the location?
To me it looks like your MANIFEST.MF points to a wrong location.

Tom

On 11.02.16 12:24, Milankumar Ardeshana wrote:
> Thanks for quick reply.
> Now i have corrected it as below.
> <?xml version="1.0" encoding="UTF-8"?>
> <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" configuration-policy="require" immediate="true" name="media.app">
> <implementation class="media.app.splash.Splash"/>
> <service>
> <provide interface="org.eclipse.fx.ui.services.startup.StartupProgressTrackerService"/>
> </service>
> </scr:component>
>
>
> still same logs.
>
Re: Splash screen [message #1723074 is a reply to message #1723073] Thu, 11 February 2016 11:47 Go to previous messageGo to next message
Milankumar Ardeshana is currently offline Milankumar ArdeshanaFriend
Messages: 27
Registered: August 2015
Junior Member
Ohh there was an extra entry in manifest file. I removed it.
now its pointing to correct service.
Now its like this :

Service-Component: OSGI-INF/services/theme-default.xml,
OSGI-INF/services/splash.xml

Still its not hitting the debug point.
Logs says nothing Sad

Do i need to create any extra classes like E4LifeCyclemanager?

I have copied media application here. https://drive.google.com/file/d/0B2UtNBqzS9ksNTF4emZtcTJ0YUk/view?usp=sharing
  • Attachment: logs.txt
    (Size: 1.58KB, Downloaded 100 times)
Re: Splash screen [message #1723088 is a reply to message #1723074] Thu, 11 February 2016 13:51 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6505
Registered: July 2009
Senior Member
Did you set a break point in the constructor?

Tom

On 11.02.16 12:47, Milankumar Ardeshana wrote:
> Ohh there was an extra entry in manifest file. I removed it.
> now its pointing to correct service.
> Now its like this :
>
> Service-Component: OSGI-INF/services/theme-default.xml,
> OSGI-INF/services/splash.xml
>
> Still its not hitting the debug point.
> Logs says nothing :(
>
> Do i need to create any extra classes like E4LifeCyclemanager?
>
> I have copied media application here. https://drive.google.com/file/d/0B2UtNBqzS9ksNTF4emZtcTJ0YUk/view?usp=sharing
>
Re: Splash screen [message #1723095 is a reply to message #1723088] Thu, 11 February 2016 14:55 Go to previous messageGo to next message
Milankumar Ardeshana is currently offline Milankumar ArdeshanaFriend
Messages: 27
Registered: August 2015
Junior Member
hi tom,
Yes i tried but it didn't hit in constructor too.
Re: Splash screen [message #1723190 is a reply to message #1723095] Fri, 12 February 2016 12:41 Go to previous messageGo to next message
Bastien Bart is currently offline Bastien BartFriend
Messages: 21
Registered: May 2014
Junior Member
Check if your xml file is selected in the build.properties file / bin.includes
Re: Splash screen [message #1723249 is a reply to message #1723190] Fri, 12 February 2016 17:37 Go to previous messageGo to next message
Milankumar Ardeshana is currently offline Milankumar ArdeshanaFriend
Messages: 27
Registered: August 2015
Junior Member
hi bastien /tom,
Yes its checked in build.properties.
I dont know why its not hitting debug point, Where its hitting for org.eclipse.fx.ui.services.theme.Theme in theme-default.xml of media application in class --> media.app.themes.DefaultTheme

-
Milan
  • Attachment: media.zip
    (Size: 8.28MB, Downloaded 67 times)
Re: Splash screen [message #1723253 is a reply to message #1723249] Fri, 12 February 2016 18:15 Go to previous messageGo to next message
Bastien Bart is currently offline Bastien BartFriend
Messages: 21
Registered: May 2014
Junior Member
Tom,

do u know if there is a trick for this bug?

https://bugs.eclipse.org/bugs/show_bug.cgi?id=418399

I tried the solution proposed by Pawel Zalejko but it doesnt work for me.
Do u have a solution to make disapear the splash? The target is only Windows 7.

Thx
Re: Splash screen [message #1723257 is a reply to message #1723253] Fri, 12 February 2016 18:34 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6505
Registered: July 2009
Senior Member
Hi,

You need to call the splash hide from the correct thread ;-)

Steps got easier because we now ship 2 applications:
* org.eclipse.fx.ui.workbench.fx.application => launches on an arbitary
thread
* org.eclipse.fx.ui.workbench.fx.main-thread-application => launches on
the main thread

So first step:
* open the .product and change from .application to .main-thread-
application
* Click synchronize in the testing section (this will modify your
.app/plugin.xml) - as an alternative you could have modified the
plugin.xml yourself
* You already have a StartupProgressTrackerService in the
osgiApplicationLaunched call IApplicationContext#applicationRunning
=> this is the last method called from the launching thread
afterwards you are in the JavaFX thread and the splash won't hide

The current draw backs:
* does not work on OS-X
* there's a short time without a splash (the time between the native
splash is hidden and the JavaFX bootsrapping is done and you show a
FX-Stage)

I've looked in this whole story and whenever I see someone from the
JavaFX-Packager Team I explain them that the current state of not having
a native splash is a none starter. We also looked in to writing our own
launcher because with the FX-Packager restart does not work either we've
not yet managed to find someone sponsoring such a development nor did we
implement such a none-opensource extension yet.

Tom

On 12.02.16 19:15, Bastien Bart wrote:
> Tom,
>
> do u know if there is a trick for this bug?
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=418399
>
> I tried the solution proposed by Pawel Zalejko but it doesnt work for me.
> Do u have a solution to make disapear the splash? The target is only
> Windows 7.
>
> Thx
Re: Splash screen [message #1723369 is a reply to message #1723257] Mon, 15 February 2016 08:25 Go to previous messageGo to next message
Bastien Bart is currently offline Bastien BartFriend
Messages: 21
Registered: May 2014
Junior Member
Hi,

Is it in 2.2 release? Or coming with 2.3?

Thomas Schindl wrote on Fri, 12 February 2016 13:34
Hi,

You need to call the splash hide from the correct thread Wink

Steps got easier because we now ship 2 applications:
* org.eclipse.fx.ui.workbench.fx.application => launches on an arbitary
thread
* org.eclipse.fx.ui.workbench.fx.main-thread-application => launches on
the main thread

So first step:
* open the .product and change from .application to .main-thread-
application
* Click synchronize in the testing section (this will modify your
.app/plugin.xml) - as an alternative you could have modified the
plugin.xml yourself
* You already have a StartupProgressTrackerService in the
osgiApplicationLaunched call IApplicationContext#applicationRunning
=> this is the last method called from the launching thread
afterwards you are in the JavaFX thread and the splash won't hide

The current draw backs:
* does not work on OS-X
* there's a short time without a splash (the time between the native
splash is hidden and the JavaFX bootsrapping is done and you show a
FX-Stage)

I've looked in this whole story and whenever I see someone from the
JavaFX-Packager Team I explain them that the current state of not having
a native splash is a none starter. We also looked in to writing our own
launcher because with the FX-Packager restart does not work either we've
not yet managed to find someone sponsoring such a development nor did we
implement such a none-opensource extension yet.

Tom

On 12.02.16 19:15, Bastien Bart wrote:
> Tom,
>
> do u know if there is a trick for this bug?
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=418399
>
> I tried the solution proposed by Pawel Zalejko but it doesnt work for me.
> Do u have a solution to make disapear the splash? The target is only
> Windows 7.
>
> Thx

Re: Splash screen [message #1723375 is a reply to message #1723369] Mon, 15 February 2016 09:21 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6505
Registered: July 2009
Senior Member
You are right - it's part of the upcoming 2.3 release
https://bugs.eclipse.org/bugs/show_bug.cgi?id=484956

Tom

On 15.02.16 09:25, Bastien Bart wrote:
> Hi,
>
> Is it in 2.2 release? Or coming with 2.3?
>
> Thomas Schindl wrote on Fri, 12 February 2016 13:34
>> Hi,
>>
>> You need to call the splash hide from the correct thread ;)
>>
>> Steps got easier because we now ship 2 applications:
>> * org.eclipse.fx.ui.workbench.fx.application => launches on an arbitary
>> thread
>> * org.eclipse.fx.ui.workbench.fx.main-thread-application => launches on
>> the main thread
>>
>> So first step:
>> * open the .product and change from .application to .main-thread-
>> application
>> * Click synchronize in the testing section (this will modify your
>> .app/plugin.xml) - as an alternative you could have modified the
>> plugin.xml yourself
>> * You already have a StartupProgressTrackerService in the
>> osgiApplicationLaunched call IApplicationContext#applicationRunning
>> => this is the last method called from the launching thread
>> afterwards you are in the JavaFX thread and the splash won't hide
>>
>> The current draw backs:
>> * does not work on OS-X
>> * there's a short time without a splash (the time between the native
>> splash is hidden and the JavaFX bootsrapping is done and you show a
>> FX-Stage)
>>
>> I've looked in this whole story and whenever I see someone from the
>> JavaFX-Packager Team I explain them that the current state of not having
>> a native splash is a none starter. We also looked in to writing our own
>> launcher because with the FX-Packager restart does not work either we've
>> not yet managed to find someone sponsoring such a development nor did we
>> implement such a none-opensource extension yet.
>>
>> Tom
>>
>> On 12.02.16 19:15, Bastien Bart wrote:
>> > Tom,
>> > > do u know if there is a trick for this bug?
>> > https://bugs.eclipse.org/bugs/show_bug.cgi?id=418399
>> > > I tried the solution proposed by Pawel Zalejko but it doesnt work
>> for me.
>> > Do u have a solution to make disapear the splash? The target is only
>> > Windows 7.
>> > > Thx
>
>
Re: Splash screen [message #1807858 is a reply to message #1713283] Tue, 11 June 2019 07:43 Go to previous messageGo to next message
Zhendong Li is currently offline Zhendong LiFriend
Messages: 8
Registered: October 2018
Junior Member
I have the same problem, can anyone help me?
Re: Splash screen [message #1807864 is a reply to message #1807858] Tue, 11 June 2019 08:03 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6505
Registered: July 2009
Senior Member
what problem - please start a new thread describing your problems - the splash does work now if you use an application launching on the main-thread
Previous Topic:Translation Service
Next Topic:Code Compensator Dependecies?
Goto Forum:
  


Current Time: Wed Sep 18 09:10:42 GMT 2019

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

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

Back to the top