Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Plugin auto-update mechanism
Plugin auto-update mechanism [message #169213] Mon, 04 September 2006 06:49 Go to next message
Eclipse UserFriend
Originally posted by: wolfgang.moestl.softwareag.com

Hi,

How do you implement an auto-update mechanism for a self written plugin?

My plugin is distributed using the standard eclipse updatesite mechanism.

If there is a newer version available on the update site, I want to
display the user a little "Hey, there is a newer version available, do you
want to update?" dialog with an "Update now" button.

I played around a bit with org.eclipse.update.core.SiteManager but that
didn't look the right way.
Is an OSGI code snipet out there?


Thanks a lot!
Wolf
Re: Plugin auto-update mechanism [message #169263 is a reply to message #169213] Mon, 04 September 2006 14:39 Go to previous messageGo to next message
kiril mitov is currently offline kiril mitovFriend
Messages: 128
Registered: July 2009
Senior Member
Hi Wolf,
If you go to Help -> Software Updates->Find and Install a wizard is
opened. The first page of this wizard has two radio buttons.
The first button is the "Search for updates of the currently installed
features".
You can check the code of this wizard.
org.eclipse.update.internal.ui.wizards.InstallWizard. (It is located in
org.eclipse.update.ui plugin).

kiril mitov.

Wolf wrote:

> Hi,

> How do you implement an auto-update mechanism for a self written plugin?

> My plugin is distributed using the standard eclipse updatesite mechanism.

> If there is a newer version available on the update site, I want to
> display the user a little "Hey, there is a newer version available, do you
> want to update?" dialog with an "Update now" button.

> I played around a bit with org.eclipse.update.core.SiteManager but that
> didn't look the right way.
> Is an OSGI code snipet out there?


> Thanks a lot!
> Wolf
Re: Plugin auto-update mechanism [message #169270 is a reply to message #169263] Mon, 04 September 2006 14:41 Go to previous message
kiril mitov is currently offline kiril mitovFriend
Messages: 128
Registered: July 2009
Senior Member
You can start the update process when a plugin of your is activated. Maybe
in the activator class.

kiril mitov wrote:

> Hi Wolf,
> If you go to Help -> Software Updates->Find and Install a wizard is
> opened. The first page of this wizard has two radio buttons.
> The first button is the "Search for updates of the currently installed
> features".
> You can check the code of this wizard.
> org.eclipse.update.internal.ui.wizards.InstallWizard. (It is located in
> org.eclipse.update.ui plugin).

> kiril mitov.

> Wolf wrote:

>> Hi,

>> How do you implement an auto-update mechanism for a self written plugin?

>> My plugin is distributed using the standard eclipse updatesite mechanism.

>> If there is a newer version available on the update site, I want to
>> display the user a little "Hey, there is a newer version available, do you
>> want to update?" dialog with an "Update now" button.

>> I played around a bit with org.eclipse.update.core.SiteManager but that
>> didn't look the right way.
>> Is an OSGI code snipet out there?


>> Thanks a lot!
>> Wolf
Previous Topic:Built in J2SE API Doc?
Next Topic:auto import
Goto Forum:
  


Current Time: Thu Mar 28 08:54:11 GMT 2024

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

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

Back to the top