Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » P2 periodic check
P2 periodic check [message #1744070] Thu, 22 September 2016 07:50 Go to next message
Jean-Pascal Laux is currently offline Jean-Pascal LauxFriend
Messages: 38
Registered: December 2011
Member
Hello,

P2 works fine in my application.
I check P2 at startup and the user can use the menu to update the product.

Is it possible to schedule a check for updates (without installation) every hour ?
I can use a timer but p2 needs a IProvisioningAgent.
How can get an instance of IProvisioningAgent ?

Jean-Pascal
Re: P2 periodic check [message #1744081 is a reply to message #1744070] Thu, 22 September 2016 09:18 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2614
Registered: July 2012
Senior Member
The IProvisioningAgent is an OSGi service IIRC. So in E4 you can get it injected. Or use the "old-style-approach" of accessing the ServiceRegistry from within an Activator.
Re: P2 periodic check [message #1744194 is a reply to message #1744081] Fri, 23 September 2016 10:00 Go to previous message
Jean-Pascal Laux is currently offline Jean-Pascal LauxFriend
Messages: 38
Registered: December 2011
Member
Thanks !

[Updated on: Fri, 23 September 2016 10:00]

Report message to a moderator

Previous Topic:multiple instances of an eclipse 4 application project
Next Topic:Plugin is unpacked even unpack is not set
Goto Forum:
  


Current Time: Fri Sep 21 21:07:06 GMT 2018

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

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

Back to the top