Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » IEventBroker.subscribe to UIEvents.UILifeCycle.APP_STARTUP_COMPLETE does not work
IEventBroker.subscribe to UIEvents.UILifeCycle.APP_STARTUP_COMPLETE does not work [message #1233960] Mon, 20 January 2014 23:09 Go to next message
Dennis Lee is currently offline Dennis LeeFriend
Messages: 32
Registered: September 2013
Member
I tried to do something once application starting is completed and found this tutorial.

http://www.vogella.com/tutorials/Eclipse4LifeCycle/article.html#lifecycle_implementationexample

This code is working in SWT e4 application, but not in efxclipse application.

I'm use latest JDK 8 and efxclipse 0.9 in Windows 7.

The first println is called but never called second one.

    @PostConstruct
    private static void postConstruct(final IEventBroker eventBroker) {
        System.out.println("1. postConstruct");

        eventBroker.subscribe(UIEvents.UILifeCycle.APP_STARTUP_COMPLETE, 
                new EventHandler() {
            @Override
            public void handleEvent(Event event) {
                System.out.println("2. handleEvent");
            }
        });
    }


Thanks

[EDIT]
I have created bug #426195
https://bugs.eclipse.org/bugs/show_bug.cgi?id=426195


[Updated on: Mon, 20 January 2014 23:12]

Report message to a moderator

Re: IEventBroker.subscribe to UIEvents.UILifeCycle.APP_STARTUP_COMPLETE does not work [message #1234086 is a reply to message #1233960] Tue, 21 January 2014 07:54 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Thanks - please do not edit posts on the forum! I'm reading the forum
using thunderbird and would have missed that you filed a bug if I would
not have browsed the forum using my iphone while on the bus to work ;-)

I'll try to get this in 0.9.0

Tom

On 21.01.14 00:09, Dennis Lee wrote:
> I tried to do something once application starting is completed and found
> this tutorial.
>
> http://www.vogella.com/tutorials/Eclipse4LifeCycle/article.html#lifecycle_implementationexample
>
>
> This code is working in SWT e4 application, but not in efxclipse
> application.
>
> I'm use latest JDK 8 and efxclipse 0.9 in Windows 7.
> The first println is called but never called second one.
>
>
> @PostConstruct
> private static void postConstruct(final IEventBroker eventBroker) {
> System.out.println("1. postConstruct");
>
> eventBroker.subscribe(UIEvents.UILifeCycle.APP_STARTUP_COMPLETE,
> new EventHandler() {
> @Override
> public void handleEvent(Event event) {
> System.out.println("2. handleEvent");
> }
> });
> }
>
>
> Thanks
>
Re: IEventBroker.subscribe to UIEvents.UILifeCycle.APP_STARTUP_COMPLETE does not work [message #1234212 is a reply to message #1234086] Tue, 21 January 2014 13:15 Go to previous messageGo to next message
Dennis Lee is currently offline Dennis LeeFriend
Messages: 32
Registered: September 2013
Member
That's great. Thanks. I'll add new post instead of editing next time.
Re: IEventBroker.subscribe to UIEvents.UILifeCycle.APP_STARTUP_COMPLETE does not work [message #1234251 is a reply to message #1234212] Tue, 21 January 2014 14:44 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
The bug is fixed and a new target platform has been published!

Tom

On 21.01.14 14:15, Dennis Lee wrote:
> That's great. Thanks. I'll add new post instead of editing next time.
Re: IEventBroker.subscribe to UIEvents.UILifeCycle.APP_STARTUP_COMPLETE does not work [message #1234277 is a reply to message #1234251] Tue, 21 January 2014 15:51 Go to previous messageGo to next message
Dennis Lee is currently offline Dennis LeeFriend
Messages: 32
Registered: September 2013
Member
Thanks.

I guess I need to wait till next nightly build? I updated from nightly runtime build but seems not working yet.
Re: IEventBroker.subscribe to UIEvents.UILifeCycle.APP_STARTUP_COMPLETE does not work [message #1234305 is a reply to message #1234277] Tue, 21 January 2014 16:46 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Well I published a new build after having fixed the problem - so if this
is not working the fix didn't work for you.

What's timestamp you have in your bundles?

Tom

On 21.01.14 16:51, Dennis Lee wrote:
> Thanks.
> I guess I need to wait till next nightly build? I updated from nightly
> runtime build but seems not working yet.
Re: IEventBroker.subscribe to UIEvents.UILifeCycle.APP_STARTUP_COMPLETE does not work [message #1234312 is a reply to message #1234305] Tue, 21 January 2014 17:01 Go to previous messageGo to next message
Dennis Lee is currently offline Dennis LeeFriend
Messages: 32
Registered: September 2013
Member
e(fx)clipse core Feature - 0.9.0.201401211337
Re: IEventBroker.subscribe to UIEvents.UILifeCycle.APP_STARTUP_COMPLETE does not work [message #1234390 is a reply to message #1234312] Tue, 21 January 2014 21:54 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Oh yeah i see my fix worked only half way! - Next one coming in a few
minutes.

Tom

On 21.01.14 18:01, Dennis Lee wrote:
> e(fx)clipse core Feature - 0.9.0.201401211337
>
Re: IEventBroker.subscribe to UIEvents.UILifeCycle.APP_STARTUP_COMPLETE does not work [message #1234395 is a reply to message #1234390] Tue, 21 January 2014 22:07 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Ok build is published - id is 0.9.0.201401212159 - I've tested it with a
small sample app.

Tom

On 21.01.14 22:54, Tom Schindl wrote:
> Hi,
>
> Oh yeah i see my fix worked only half way! - Next one coming in a few
> minutes.
>
> Tom
>
> On 21.01.14 18:01, Dennis Lee wrote:
>> e(fx)clipse core Feature - 0.9.0.201401211337
>>
>
Re: IEventBroker.subscribe to UIEvents.UILifeCycle.APP_STARTUP_COMPLETE does not work [message #1234423 is a reply to message #1234395] Tue, 21 January 2014 23:54 Go to previous message
Dennis Lee is currently offline Dennis LeeFriend
Messages: 32
Registered: September 2013
Member
It is working. Thanks a lot.
Previous Topic:Hybrid jars
Next Topic:BaseRenderer.unbindWidget
Goto Forum:
  


Current Time: Fri Apr 26 12:02:41 GMT 2024

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

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

Back to the top