Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Restart after installation
Restart after installation [message #496312] Mon, 09 November 2009 16:52 Go to next message
Hugues Rérolle is currently offline Hugues RérolleFriend
Messages: 60
Registered: July 2009
Member
Hi all,

Is it possible to know when the plaform is restarting after software
updating.

Thanks,

Hugues
Re: Restart after installation [message #496428 is a reply to message #496312] Tue, 10 November 2009 03:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wangqs_eclipse.yahoo.com

You can add a SynchronousProvisioningListener to the IProvisioningEventBus
Then handle the event in the notify method of the listener to determine
if restarting is needed

Hope this is helpful.

Cheers
Q.S. Wang

Hugues Rérolle wrote:
>
> Hi all,
>
> Is it possible to know when the plaform is restarting after software
> updating.
>
> Thanks,
>
> Hugues
>
Re: Restart after installation [message #496459 is a reply to message #496428] Tue, 10 November 2009 08:28 Go to previous messageGo to next message
Hugues Rérolle is currently offline Hugues RérolleFriend
Messages: 60
Registered: July 2009
Member
Thanks Wang for your solution,

But I forgot to specify that I want to be notified when the platform is
starting first time after an update (or other installation).

Do you think that your proposal could achieve that?

Thanks again!

Hugues


Wang Q.S wrote:
> You can add a SynchronousProvisioningListener to the IProvisioningEventBus
> Then handle the event in the notify method of the listener to determine
> if restarting is needed
>
> Hope this is helpful.
>
> Cheers
> Q.S. Wang
>
> Hugues Rérolle wrote:
>>
>> Hi all,
>>
>> Is it possible to know when the plaform is restarting after software
>> updating.
>>
>> Thanks,
>>
>> Hugues
>>
Re: Restart after installation [message #496462 is a reply to message #496459] Tue, 10 November 2009 08:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wangqs_eclipse.yahoo.com

Is it a RCP application of yourself? Or are you talking about eclipse SDK?

I don't know if eclipse has any solution for this. Tut if it's your RCP
application, then it should be easy to create a indicate file by using
the listener. The RCP application can then to check this file to know
it's the first time running.

Q.S. Wang

Hugues Rérolle wrote:
> Thanks Wang for your solution,
>
> But I forgot to specify that I want to be notified when the platform is
> starting first time after an update (or other installation).
>
> Do you think that your proposal could achieve that?
>
> Thanks again!
>
> Hugues
>
>
> Wang Q.S wrote:
>> You can add a SynchronousProvisioningListener to the
>> IProvisioningEventBus
>> Then handle the event in the notify method of the listener to
>> determine if restarting is needed
>>
>> Hope this is helpful.
>>
>> Cheers
>> Q.S. Wang
>>
>> Hugues Rérolle wrote:
>>>
>>> Hi all,
>>>
>>> Is it possible to know when the plaform is restarting after software
>>> updating.
>>>
>>> Thanks,
>>>
>>> Hugues
>>>
Re: Restart after installation [message #496588 is a reply to message #496462] Tue, 10 November 2009 16:07 Go to previous message
Hugues Rérolle is currently offline Hugues RérolleFriend
Messages: 60
Registered: July 2009
Member
I'm talking about my non-RCP application (I use org.eclipse.platform).

Thanks for the file idea, but that's what I already do by using an
install handler for creating the file...

Thanks again.

Hugues

Wang Q.S wrote:
> Is it a RCP application of yourself? Or are you talking about eclipse SDK?
>
> I don't know if eclipse has any solution for this. Tut if it's your RCP
> application, then it should be easy to create a indicate file by using
> the listener. The RCP application can then to check this file to know
> it's the first time running.
>
> Q.S. Wang
>
> Hugues Rérolle wrote:
>> Thanks Wang for your solution,
>>
>> But I forgot to specify that I want to be notified when the platform
>> is starting first time after an update (or other installation).
>>
>> Do you think that your proposal could achieve that?
>>
>> Thanks again!
>>
>> Hugues
>>
>>
>> Wang Q.S wrote:
>>> You can add a SynchronousProvisioningListener to the
>>> IProvisioningEventBus
>>> Then handle the event in the notify method of the listener to
>>> determine if restarting is needed
>>>
>>> Hope this is helpful.
>>>
>>> Cheers
>>> Q.S. Wang
>>>
>>> Hugues Rérolle wrote:
>>>>
>>>> Hi all,
>>>>
>>>> Is it possible to know when the plaform is restarting after software
>>>> updating.
>>>>
>>>> Thanks,
>>>>
>>>> Hugues
>>>>
Previous Topic:Registering filters for specific servlets using equinox extension points
Next Topic:downgrading bundles with p2
Goto Forum:
  


Current Time: Thu Apr 25 13:28:59 GMT 2024

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

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

Back to the top