Skip to main content



      Home
Home » Newcomers » Newcomers » Plugin auto-update mechanism
Plugin auto-update mechanism [message #169213] Mon, 04 September 2006 02: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 10:39 Go to previous messageGo to next message
Eclipse UserFriend
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 10:41 Go to previous message
Eclipse UserFriend
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: Sat May 10 21:37:45 EDT 2025

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

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

Back to the top