Plugin auto-update mechanism [message #169213] |
Mon, 04 September 2006 02:49  |
Eclipse User |
|
|
|
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 #169270 is a reply to message #169263] |
Mon, 04 September 2006 10:41  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.10590 seconds