|Check for PlugIn-Update automatically [message #936950]
||Mon, 08 October 2012 10:06
| JC Temp
Registered: September 2010
Hi all together,|
I'm searching for a function, e.g. in a AbstractUIPlugin, which gives me the possibility to check automaticly for updates of my plugin.
The background: I've written a plugin for eclipse, that all programmers of my team have installed. It is generating source-code from a template. Therefore is necessary to be up to date with that plugin. I don't want the programmers to generate old versioned sources.
So I want the plugin, when it starts, to check the download-site (it's an intranet-site) and warn the user, when a old version of the plugin is installed. The programmer is forced to updated, before he can use the plugin.
A low level check is implemented somehow fast. That means I manually connect to the update-site (new URL("somewhere").openStream()), read out feature.xml from the feature.jar and check the version-tag.
Is there a more elegant way to check the version? When I try to install that plugin through "Install New Software...", eclipse recognizes too, if the plugin is up to date or not. Same thing with "Check for Updates".
Is it possible to use that feature out of my plugin? Is there a hook for checking the version?
Thanks a lot,
Powered by FUDForum
. Page generated in 0.01622 seconds